equal
deleted
inserted
replaced
82 // If _uncommit_on_purge is true: |
82 // If _uncommit_on_purge is true: |
83 // Minimum word size of an area to be candidate for uncommitting. |
83 // Minimum word size of an area to be candidate for uncommitting. |
84 // Must be a multiple of and not smaller than commit granularity. |
84 // Must be a multiple of and not smaller than commit granularity. |
85 static size_t _uncommit_on_purge_min_word_size; |
85 static size_t _uncommit_on_purge_min_word_size; |
86 |
86 |
87 // experimental: If CompressedClassPointers is on, all allocations live in class space. |
|
88 // |
|
89 // This reduces fragmentation, number of chunks and waste by a moderate amount. It will shift all |
|
90 // allocations to class space - also those not addressed by compressed pointers. For many use cases |
|
91 // this may be a valid solution since their metaspace usage can usually be served with the default |
|
92 // size of 1G compressed class space. |
|
93 static bool _always_use_class_space; |
|
94 |
|
95 public: |
87 public: |
96 |
88 |
97 static size_t commit_granule_bytes() { return _commit_granule_bytes; } |
89 static size_t commit_granule_bytes() { return _commit_granule_bytes; } |
98 static size_t commit_granule_words() { return _commit_granule_words; } |
90 static size_t commit_granule_words() { return _commit_granule_words; } |
99 static bool newborn_root_chunks_are_fully_committed() { return _newborn_root_chunks_are_fully_committed; } |
91 static bool newborn_root_chunks_are_fully_committed() { return _newborn_root_chunks_are_fully_committed; } |
123 // Uncommit, but try to strike a balance with CPU load |
115 // Uncommit, but try to strike a balance with CPU load |
124 strategy_balanced_reclaim |
116 strategy_balanced_reclaim |
125 |
117 |
126 }; |
118 }; |
127 |
119 |
128 static void initialize(strategy_t theme, bool always_use_class_space); |
120 static void initialize(strategy_t theme); |
129 |
121 |
130 static void print_on(outputStream* st); |
122 static void print_on(outputStream* st); |
131 |
|
132 // Non-strategy-related settings |
|
133 static bool always_use_class_space() { return _always_use_class_space; } |
|
134 |
123 |
135 }; |
124 }; |
136 |
125 |
137 } // namespace metaspace |
126 } // namespace metaspace |
138 |
127 |