-
Enhancement
-
Resolution: Won't Fix
-
P4
-
18
Preventive collections were introduced in JDK-8257774 to help with evacuation failures.
The assumption has been that we should do a young collection in presence of short bursts of short living humongous objects preventively because eager humongous reclaim would reclaim those quickly anyway, freeing enough space.
The current implementation does not consider the fact that if there are no humongous eager reclaim candidates (or any humongous objects) g1 won't free any extra space, so the preventive collection is useless, wasting time to do these preventive collections before going into a full gc.
The assumption has been that we should do a young collection in presence of short bursts of short living humongous objects preventively because eager humongous reclaim would reclaim those quickly anyway, freeing enough space.
The current implementation does not consider the fact that if there are no humongous eager reclaim candidates (or any humongous objects) g1 won't free any extra space, so the preventive collection is useless, wasting time to do these preventive collections before going into a full gc.
- relates to
-
JDK-8257774 G1: Trigger collect when free region count drops below threshold to prevent evacuation failures
- Resolved
-
JDK-8297639 Remove preventive GCs in G1
- Resolved