Integrated: 8285773: Replace Algorithms.eatMemory(...) with WB.fullGC() in vmTestbase/gc/gctests/ReferencesGC/ReferencesGC.java
Leonid Mesnik
lmesnik at openjdk.java.net
Fri Apr 29 19:37:43 UTC 2022
On Thu, 28 Apr 2022 02:23:47 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 95d38bbd
Author: Leonid Mesnik <lmesnik at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/95d38bbd6b33a965b2312fd9409c6879ca2772ab
Stats: 31 lines in 1 file changed: 7 ins; 11 del; 13 mod
8285773: Replace Algorithms.eatMemory(...) with WB.fullGC() in vmTestbase/gc/gctests/ReferencesGC/ReferencesGC.java
Reviewed-by: tschatzl, kbarrett
-------------
PR: https://git.openjdk.java.net/jdk/pull/8440
More information about the hotspot-gc-dev
mailing list