G1 has the notion of a "reserve" set by the G1ReservePercent parameter. The idea behind the reserve is that G1 should always try to leave the reserve memory free in case a collection copies unexpectedly more objects and requires more to-space than expected / predicted.
Currently, it is set to a very generous / conservative value (10% of the heap). Maybe we can reconsider this and, when the user does not set it explicitly, we can maybe make it less conservative or adjust it according to the current heap parameters.
Currently, it is set to a very generous / conservative value (10% of the heap). Maybe we can reconsider this and, when the user does not set it explicitly, we can maybe make it less conservative or adjust it according to the current heap parameters.
- relates to
-
JDK-6994056 G1: when GC locker is active, extend the Eden instead of allocating into the old gen
- Closed