Skip to content

Commit

Permalink
Force global GC in ReferencedKeyTest
Browse files Browse the repository at this point in the history
Fixes: eclipse-openj9/openj9#17910

Signed-off-by: Tobi Ajila <[email protected]>
  • Loading branch information
tajila committed Aug 29, 2023
1 parent 440eb6c commit 1e8fbfb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/jdk/java/lang/runtime/ReferencedKeyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ static void methods(Map<Long, String> map) {
}

static void collect() {
System.gc();
System.gc();
System.runFinalization();
System.gc();
System.gc();
sleep();
}
Expand Down

0 comments on commit 1e8fbfb

Please sign in to comment.