--- a/src/hotspot/share/memory/metaspace/settings.cpp Tue Nov 19 20:01:05 2019 +0100
+++ b/src/hotspot/share/memory/metaspace/settings.cpp Fri Nov 01 10:28:15 2019 +0100
@@ -53,6 +53,8 @@
bool Settings::_uncommit_on_purge = false;
size_t Settings::_uncommit_on_purge_min_word_size = 0;
+bool Settings::_use_lom = false;
+
void Settings::ergo_initialize() {
@@ -130,6 +132,8 @@
_enlarge_chunks_in_place = MetaspaceEnlargeChunksInPlace;
_enlarge_chunks_in_place_max_word_size = 256 * K;
+ _use_lom = MetaspaceUseLOM;
+
// Sanity checks.
guarantee(commit_granule_words() <= chklvl::MAX_CHUNK_WORD_SIZE, "Too large granule size");
guarantee(is_power_of_2(commit_granule_words()), "granule size must be a power of 2");
@@ -161,6 +165,7 @@
st->print_cr(" - uncommit_on_purge: %d.", (int)uncommit_on_purge());
st->print_cr(" - uncommit_on_purge_min_word_size: " SIZE_FORMAT ".", uncommit_on_purge_min_word_size());
+ st->print_cr(" - use_lom: %d.", use_lom());
}