RFR: 8285773: Replace Algorithms.eatMemory(...) with WB.fullGC() in vmTestbase/gc/gctests/ReferencesGC/ReferencesGC.java [v2]
Leonid Mesnik
lmesnik at openjdk.java.net
Fri Apr 29 19:05:18 UTC 2022
> Please review this fix.
> OOME might happen in any thread, causing test failure.
>
> The reference tests provoke OOME only to force reference clearing.
>
> The possible fix is to force it directly with WB.fullGC(). Another possible fix would be to throw SkippedException in DefaultUncaughtExceptionHandler. However, it might also cause OOME and still fail.
>
> We might also want to verify that a last-ditch GC or something similar is called for each GC.
Leonid Mesnik has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- Merge branch 'master' of https://github.com/openjdk/jdk into 8285773
- comments updated
- 8285773
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/8440/files
- new: https://git.openjdk.java.net/jdk/pull/8440/files/ae9f7c8b..559dc714
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8440&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8440&range=00-01
Stats: 13867 lines in 448 files changed: 8989 ins; 2490 del; 2388 mod
Patch: https://git.openjdk.java.net/jdk/pull/8440.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8440/head:pull/8440
PR: https://git.openjdk.java.net/jdk/pull/8440
More information about the hotspot-gc-dev
mailing list