8151845: Comment in globals.hpp for MetaspaceSize is incorrect.
authorjmasa
Thu, 17 Mar 2016 15:50:31 -0700
changeset 37151 bcda1fb89431
parent 37150 c415c138fada
child 37154 f7c936ce8bff
child 37155 f00f299cb386
8151845: Comment in globals.hpp for MetaspaceSize is incorrect. Reviewed-by: drwhite, stefank
hotspot/src/share/vm/memory/metaspace.cpp
hotspot/src/share/vm/runtime/globals.hpp
--- 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);
--- 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,                              \