8145190: MinTLABSize can cause overflow problem with CMS GC
authorsangheki
Fri, 29 Jan 2016 16:25:10 -0800
changeset 35896 44c25fd8dbb3
parent 35895 12c52417e0f0
child 35897 beba2418d973
8145190: MinTLABSize can cause overflow problem with CMS GC Summary: Changed max range of MinTLABSize from max_uintx to max_uintx/2 Reviewed-by: jwilhelm, tbenson
hotspot/src/share/vm/runtime/globals.hpp
--- a/hotspot/src/share/vm/runtime/globals.hpp	Fri Jan 29 18:17:44 2016 +0000
+++ b/hotspot/src/share/vm/runtime/globals.hpp	Fri Jan 29 16:25:10 2016 -0800
@@ -3260,7 +3260,7 @@
                                                                             \
   product(size_t, MinTLABSize, 2*K,                                         \
           "Minimum allowed TLAB size (in bytes)")                           \
-          range(1, max_uintx)                                               \
+          range(1, max_uintx/2)                                             \
           constraint(MinTLABSizeConstraintFunc,AfterMemoryInit)             \
                                                                             \
   product(size_t, TLABSize, 0,                                              \