Merge
authorpoonam
Thu, 22 Aug 2013 21:23:31 -0700
changeset 19541 7631907463d2
parent 19538 d3d20902831f (current diff)
parent 19540 689a4dc94a53 (diff)
child 19542 e55d447cc2a1
Merge
--- a/hotspot/src/share/vm/services/management.cpp	Thu Aug 22 17:21:48 2013 -0700
+++ b/hotspot/src/share/vm/services/management.cpp	Thu Aug 22 21:23:31 2013 -0700
@@ -876,8 +876,6 @@
       total_used += u.used();
       total_committed += u.committed();
 
-      // if any one of the memory pool has undefined init_size or max_size,
-      // set it to -1
       if (u.init_size() == (size_t)-1) {
         has_undefined_init_size = true;
       }
@@ -894,6 +892,15 @@
     }
   }
 
+  // if any one of the memory pool has undefined init_size or max_size,
+  // set it to -1
+  if (has_undefined_init_size) {
+    total_init = (size_t)-1;
+  }
+  if (has_undefined_max_size) {
+    total_max = (size_t)-1;
+  }
+
   MemoryUsage usage((heap ? InitialHeapSize : total_init),
                     total_used,
                     total_committed,