changeset 1682:af586a7893cf

Merge
author tonyp
date Fri, 27 Aug 2010 10:44:06 -0700
parents 21c29458b334 1c63587d925b
children 75107ee8712f
files
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/services/management.cpp	Fri Aug 27 16:57:04 2010 +0100
+++ b/src/share/vm/services/management.cpp	Fri Aug 27 10:44:06 2010 -0700
@@ -785,10 +785,11 @@
     }
   }
 
-  // In our current implementation, all pools should have
-  // defined init and max size
-  assert(!has_undefined_init_size, "Undefined init size");
-  assert(!has_undefined_max_size, "Undefined max size");
+  // In our current implementation, we make sure that all non-heap
+  // pools have defined init and max sizes. Heap pools do not matter,
+  // as we never use total_init and total_max for them.
+  assert(heap || !has_undefined_init_size, "Undefined init size");
+  assert(heap || !has_undefined_max_size,  "Undefined max size");
 
   MemoryUsage usage((heap ? InitialHeapSize : total_init),
                     total_used,