5353import java .util .regex .Pattern ;
5454
5555import jdk .test .lib .Asserts ;
56+ import jdk .test .lib .Platform ;
5657import jdk .test .lib .process .OutputAnalyzer ;
5758import jdk .test .lib .process .ProcessTools ;
58- import static jdk .test .lib .Asserts .*;
5959import jdk .test .whitebox .WhiteBox ;
6060
6161public 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