Skip to content

Commit 5c6947f

Browse files
author
Thomas Schatzl
committed
8373429: gc/g1/TestCodeCacheUnloadDuringConcCycle fails on various platforms
Reviewed-by: mbaesken, mdoerr
1 parent 6b3c1e0 commit 5c6947f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/hotspot/jtreg/gc/g1/TestCodeCacheUnloadDuringConcCycle.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
import java.util.regex.Pattern;
5454

5555
import jdk.test.lib.Asserts;
56+
import jdk.test.lib.Platform;
5657
import jdk.test.lib.process.OutputAnalyzer;
5758
import jdk.test.lib.process.ProcessTools;
58-
import static jdk.test.lib.Asserts.*;
5959
import jdk.test.whitebox.WhiteBox;
6060

6161
public class TestCodeCacheUnloadDuringConcCycle {
@@ -70,9 +70,10 @@ private static OutputAnalyzer runTest(String concPhase) throws Exception {
7070
"-Xbootclasspath/a:.",
7171
"-Xlog:gc=trace,codecache",
7272
"-XX:+WhiteBoxAPI",
73-
"-XX:ReservedCodeCacheSize=8M",
73+
"-XX:ReservedCodeCacheSize=" + (Platform.is32bit() ? "4M" : "8M"),
7474
"-XX:StartAggressiveSweepingAt=50",
7575
"-XX:CompileCommand=compileonly,gc.g1.SomeClass::*",
76+
"-XX:CompileCommand=compileonly,gc.g1.Foo*::*",
7677
TestCodeCacheUnloadDuringConcCycleRunner.class.getName(),
7778
concPhase);
7879
return output;
@@ -140,7 +141,7 @@ private static void triggerCodeCacheGC() throws Exception {
140141
System.out.println("Compiled " + i + " classes");
141142
}
142143
i++;
143-
} while (i < 1000);
144+
} while (i < 200);
144145
System.out.println("Compilation done, compiled " + i + " classes");
145146
} catch (Throwable t) {
146147
}

0 commit comments

Comments
 (0)