diff src/share/vm/memory/universe.cpp @ 1963:0ac62b4d6507

6999491: non-zero COOPs are used when they should not Summary: HeapBaseMinAddress should be used only for a default heap size calculation. Reviewed-by: iveresov, jcoomes, dholmes
author kvn
date Fri, 12 Nov 2010 09:51:43 -0800
parents e9ff18c4ace7
children 4110c3e0c50d
line wrap: on
line diff
--- a/src/share/vm/memory/universe.cpp	Tue Nov 09 17:31:18 2010 -0800
+++ b/src/share/vm/memory/universe.cpp	Fri Nov 12 09:51:43 2010 -0800
@@ -864,7 +864,8 @@
     // compressed oops for pstack code.
     if (PrintCompressedOopsMode) {
       tty->cr();
-      tty->print("heap address: "PTR_FORMAT, Universe::heap()->base());
+      tty->print("heap address: " PTR_FORMAT ", size: " SIZE_FORMAT " MB",
+                 Universe::heap()->base(), Universe::heap()->reserved_region().byte_size()/M);
     }
     if ((uint64_t)Universe::heap()->reserved_region().end() > OopEncodingHeapMax) {
       // Can't reserve heap below 32Gb.