src/hotspot/share/memory/metaspace/settings.cpp
branchstuefe-new-metaspace-branch
changeset 58646 bcdba1c9f1fe
parent 58380 0d77dd9159b1
child 59155 b537e6386306
equal deleted inserted replaced
58645:28c7e6711871 58646:bcdba1c9f1fe
    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 
    55 
    56 
    56 
    57 bool Settings::_separate_micro_cld_allocations = false;
       
    58 
    57 
    59 void Settings::ergo_initialize() {
    58 void Settings::ergo_initialize() {
    60 
    59 
    61   if (strcmp(MetaspaceReclaimStrategy, "none") == 0) {
    60   if (strcmp(MetaspaceReclaimStrategy, "none") == 0) {
    62 
    61 
   129   // Since this has nothing to do with reclaiming, set it independently from the
   128   // Since this has nothing to do with reclaiming, set it independently from the
   130   // strategy. This is rather arbitrarily choosen.
   129   // strategy. This is rather arbitrarily choosen.
   131   _enlarge_chunks_in_place = MetaspaceEnlargeChunksInPlace;
   130   _enlarge_chunks_in_place = MetaspaceEnlargeChunksInPlace;
   132   _enlarge_chunks_in_place_max_word_size = 256 * K;
   131   _enlarge_chunks_in_place_max_word_size = 256 * K;
   133 
   132 
   134   // Optionally, we can shepherd micro cld metaspace allocs to an own root chunk.
       
   135   _separate_micro_cld_allocations = MetaspaceSeparateMicroCLDs;
       
   136 
       
   137   // Sanity checks.
   133   // Sanity checks.
   138   guarantee(commit_granule_words() <= chklvl::MAX_CHUNK_WORD_SIZE, "Too large granule size");
   134   guarantee(commit_granule_words() <= chklvl::MAX_CHUNK_WORD_SIZE, "Too large granule size");
   139   guarantee(is_power_of_2(commit_granule_words()), "granule size must be a power of 2");
   135   guarantee(is_power_of_2(commit_granule_words()), "granule size must be a power of 2");
   140 
   136 
   141   LogStream ls(Log(metaspace)::info());
   137   LogStream ls(Log(metaspace)::info());