1.1 --- a/src/share/vm/memory/metaspace.cpp Mon Feb 11 15:24:48 2013 -0800 1.2 +++ b/src/share/vm/memory/metaspace.cpp Wed Jan 23 19:08:04 2013 -0800 1.3 @@ -1064,11 +1064,11 @@ 1.4 // 1.5 // After the GC the compute_new_size() for MetaspaceGC is called to 1.6 // resize the capacity of the metaspaces. The current implementation 1.7 -// is based on the flags MinHeapFreeRatio and MaxHeapFreeRatio used 1.8 +// is based on the flags MinMetaspaceFreeRatio and MaxHeapFreeRatio used 1.9 // to resize the Java heap by some GC's. New flags can be implemented 1.10 // if really needed. MinHeapFreeRatio is used to calculate how much 1.11 // free space is desirable in the metaspace capacity to decide how much 1.12 -// to increase the HWM. MaxHeapFreeRatio is used to decide how much 1.13 +// to increase the HWM. MaxMetaspaceFreeRatio is used to decide how much 1.14 // free space is desirable in the metaspace capacity before decreasing 1.15 // the HWM. 1.16 1.17 @@ -1166,7 +1166,7 @@ 1.18 size_t capacity_until_GC = vsl->capacity_bytes_sum(); 1.19 size_t free_after_gc = capacity_until_GC - used_after_gc; 1.20 1.21 - const double minimum_free_percentage = MinHeapFreeRatio / 100.0; 1.22 + const double minimum_free_percentage = MinMetaspaceFreeRatio / 100.0; 1.23 const double maximum_used_percentage = 1.0 - minimum_free_percentage; 1.24 1.25 const double min_tmp = used_after_gc / maximum_used_percentage; 1.26 @@ -1232,8 +1232,8 @@ 1.27 max_shrink_words)); 1.28 1.29 // Should shrinking be considered? 1.30 - if (MaxHeapFreeRatio < 100) { 1.31 - const double maximum_free_percentage = MaxHeapFreeRatio / 100.0; 1.32 + if (MaxMetaspaceFreeRatio < 100) { 1.33 + const double maximum_free_percentage = MaxMetaspaceFreeRatio / 100.0; 1.34 const double minimum_used_percentage = 1.0 - maximum_free_percentage; 1.35 const double max_tmp = used_after_gc / minimum_used_percentage; 1.36 size_t maximum_desired_capacity = (size_t)MIN2(max_tmp, double(max_uintx));