# HG changeset patch # User jmasa # Date 1458255031 25200 # Node ID bcda1fb8943195121087e7a9e64b53327c4c1929 # Parent c415c138fada38458628090646b5c0e50a1d2c60 8151845: Comment in globals.hpp for MetaspaceSize is incorrect. Reviewed-by: drwhite, stefank diff -r c415c138fada -r bcda1fb89431 hotspot/src/share/vm/memory/metaspace.cpp --- a/hotspot/src/share/vm/memory/metaspace.cpp Fri Mar 18 15:54:04 2016 +0100 +++ b/hotspot/src/share/vm/memory/metaspace.cpp Thu Mar 17 15:50:31 2016 -0700 @@ -1573,7 +1573,7 @@ } else { _shrink_factor = MIN2(current_shrink_factor * 4, (uint) 100); } - log_trace(gc, metaspace)(" shrinking: initSize: %.1fK maximum_desired_capacity: %.1fK", + log_trace(gc, metaspace)(" shrinking: initThreshold: %.1fK maximum_desired_capacity: %.1fK", MetaspaceSize / (double) K, maximum_desired_capacity / (double) K); log_trace(gc, metaspace)(" shrink_bytes: %.1fK current_shrink_factor: %d new shrink factor: %d MinMetaspaceExpansion: %.1fK", shrink_bytes / (double) K, current_shrink_factor, _shrink_factor, MinMetaspaceExpansion / (double) K); diff -r c415c138fada -r bcda1fb89431 hotspot/src/share/vm/runtime/globals.hpp --- a/hotspot/src/share/vm/runtime/globals.hpp Fri Mar 18 15:54:04 2016 +0100 +++ b/hotspot/src/share/vm/runtime/globals.hpp Thu Mar 17 15:50:31 2016 -0700 @@ -3245,7 +3245,8 @@ range(0, max_uintx) \ \ product_pd(size_t, MetaspaceSize, \ - "Initial size of Metaspaces (in bytes)") \ + "Initial threshold (in bytes) at which a garbage collection " \ + "is done to reduce Metaspace usage") \ constraint(MetaspaceSizeConstraintFunc,AfterErgo) \ \ product(size_t, MaxMetaspaceSize, max_uintx, \