7132398: G1: java.lang.IllegalArgumentException: Invalid threshold: 9223372036854775807 > max (1073741824)
authortonyp
Tue, 24 Jan 2012 17:08:58 -0500
changeset 11582 267a50cf2e70
parent 11581 b1afc51ad34e
child 11583 83a7383de44c
7132398: G1: java.lang.IllegalArgumentException: Invalid threshold: 9223372036854775807 > max (1073741824) Summary: Was not passing the right old pool max to the memory pool constructor in the fix for 7078465. Reviewed-by: brutisso, johnc
hotspot/src/share/vm/services/g1MemoryPool.cpp
--- a/hotspot/src/share/vm/services/g1MemoryPool.cpp	Mon Jan 23 20:36:16 2012 +0100
+++ b/hotspot/src/share/vm/services/g1MemoryPool.cpp	Tue Jan 24 17:08:58 2012 -0500
@@ -78,7 +78,7 @@
   G1MemoryPoolSuper(g1h,
                     "G1 Old Gen",
                     g1h->g1mm()->old_space_committed(), /* init_size */
-                    _undefined_max,
+                    g1h->g1mm()->old_gen_max(),
                     true /* support_usage_threshold */) { }
 
 MemoryUsage G1OldGenPool::get_memory_usage() {