diff --git a/test/jdk/java/lang/runtime/ReferencedKeyTest.java b/test/jdk/java/lang/runtime/ReferencedKeyTest.java index 9234cffb98a..d29af212edb 100644 --- a/test/jdk/java/lang/runtime/ReferencedKeyTest.java +++ b/test/jdk/java/lang/runtime/ReferencedKeyTest.java @@ -87,6 +87,10 @@ static void methods(Map map) { } static void collect() { + System.gc(); + System.gc(); + sleep(); + System.gc(); System.gc(); sleep(); }