Skip to content

Commit

Permalink
Increase the likelyhood of GC in referenceKeyTest
Browse files Browse the repository at this point in the history
Signed-off-by: Tobi Ajila <[email protected]>
  • Loading branch information
TobiAjila committed Aug 15, 2023
1 parent 335cca2 commit f3dda7f
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();
sleep();
System.gc();
System.gc();
sleep();
}
Expand Down

0 comments on commit f3dda7f

Please sign in to comment.