equal
deleted
inserted
replaced
50 size_t Settings::_uncommit_on_return_min_word_size = 0; |
50 size_t Settings::_uncommit_on_return_min_word_size = 0; |
51 |
51 |
52 bool Settings::_delete_nodes_on_purge = false; |
52 bool Settings::_delete_nodes_on_purge = false; |
53 bool Settings::_uncommit_on_purge = false; |
53 bool Settings::_uncommit_on_purge = false; |
54 size_t Settings::_uncommit_on_purge_min_word_size = 0; |
54 size_t Settings::_uncommit_on_purge_min_word_size = 0; |
|
55 |
|
56 bool Settings::_use_lom = false; |
55 |
57 |
56 |
58 |
57 |
59 |
58 void Settings::ergo_initialize() { |
60 void Settings::ergo_initialize() { |
59 |
61 |
128 // Since this has nothing to do with reclaiming, set it independently from the |
130 // Since this has nothing to do with reclaiming, set it independently from the |
129 // strategy. This is rather arbitrarily choosen. |
131 // strategy. This is rather arbitrarily choosen. |
130 _enlarge_chunks_in_place = MetaspaceEnlargeChunksInPlace; |
132 _enlarge_chunks_in_place = MetaspaceEnlargeChunksInPlace; |
131 _enlarge_chunks_in_place_max_word_size = 256 * K; |
133 _enlarge_chunks_in_place_max_word_size = 256 * K; |
132 |
134 |
|
135 _use_lom = MetaspaceUseLOM; |
|
136 |
133 // Sanity checks. |
137 // Sanity checks. |
134 guarantee(commit_granule_words() <= chklvl::MAX_CHUNK_WORD_SIZE, "Too large granule size"); |
138 guarantee(commit_granule_words() <= chklvl::MAX_CHUNK_WORD_SIZE, "Too large granule size"); |
135 guarantee(is_power_of_2(commit_granule_words()), "granule size must be a power of 2"); |
139 guarantee(is_power_of_2(commit_granule_words()), "granule size must be a power of 2"); |
136 |
140 |
137 LogStream ls(Log(metaspace)::info()); |
141 LogStream ls(Log(metaspace)::info()); |
159 st->print_cr(" - delete_nodes_on_purge: %d.", (int)delete_nodes_on_purge()); |
163 st->print_cr(" - delete_nodes_on_purge: %d.", (int)delete_nodes_on_purge()); |
160 |
164 |
161 st->print_cr(" - uncommit_on_purge: %d.", (int)uncommit_on_purge()); |
165 st->print_cr(" - uncommit_on_purge: %d.", (int)uncommit_on_purge()); |
162 st->print_cr(" - uncommit_on_purge_min_word_size: " SIZE_FORMAT ".", uncommit_on_purge_min_word_size()); |
166 st->print_cr(" - uncommit_on_purge_min_word_size: " SIZE_FORMAT ".", uncommit_on_purge_min_word_size()); |
163 |
167 |
|
168 st->print_cr(" - use_lom: %d.", use_lom()); |
164 |
169 |
165 } |
170 } |
166 |
171 |
167 } // namespace metaspace |
172 } // namespace metaspace |
168 |
173 |