RFR: 8308009: Generational ZGC: OOM before clearing all SoftReferences [v2]
Erik Österlund
eosterlund at openjdk.org
Thu May 25 16:09:13 UTC 2023
> When a major GC in generational ZGC with a different cause that doesn’t pre-clean and doesn’t clear soft references, we ask if there are allocations stalled on old. And part of that condition is to check if we are not stalled on young. So if an allocation request comes in just before such a “weak” major GC, we will say we won’t clear soft references. But after that major collection we will satisfy all the constraints to throw OOM as both an YC and OC has passed since the allocation request was installed.
> The solution is to let the driver remember if it cleared soft references or not, and only throw OOM if it cleared soft references.
Erik Österlund has updated the pull request incrementally with one additional commit since the last revision:
Assert and comment
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/14122/files
- new: https://git.openjdk.org/jdk/pull/14122/files/45b2b269..abd90fc3
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=14122&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=14122&range=00-01
Stats: 8 lines in 1 file changed: 8 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/14122.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14122/head:pull/14122
PR: https://git.openjdk.org/jdk/pull/14122
More information about the hotspot-gc-dev
mailing list