Mercurial > hg > graal-compiler
diff src/share/vm/gc_implementation/g1/g1_globals.hpp @ 4729:1cbe7978b021
7113021: G1: automatically enable young gen size auto-tuning when -Xms==-Xmx
Summary: Use a percentage of -Xms as min and another percentage of -Xmx as max for the young gen size
Reviewed-by: tonyp, johnc
author | brutisso |
---|---|
date | Wed, 21 Dec 2011 22:13:31 +0100 |
parents | a88de71c4e3a |
children | 1d6185f732aa |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1_globals.hpp Wed Dec 14 13:34:57 2011 -0800 +++ b/src/share/vm/gc_implementation/g1/g1_globals.hpp Wed Dec 21 22:13:31 2011 +0100 @@ -289,7 +289,15 @@ \ develop(uintx, G1ConcMarkForceOverflow, 0, \ "The number of times we'll force an overflow during " \ - "concurrent marking") + "concurrent marking") \ + \ + develop(uintx, G1DefaultMinNewGenPercent, 20, \ + "Percentage (0-100) of the heap size to use as minimum " \ + "young gen size.") \ + \ + develop(uintx, G1DefaultMaxNewGenPercent, 50, \ + "Percentage (0-100) of the heap size to use as maximum " \ + "young gen size.") G1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG)