Mercurial > hg > graal-compiler
comparison test/compiler/codecache/CheckUpperLimit.java @ 12001:446cb5d25d03
8020531: Test compiler/codecache/CheckUpperLimit.java fails when memory limited
Summary: Removed part of the test that required the VM to start up with -XX:ReservedCodeCacheSize=2048m
Reviewed-by: kvn, rbackman
author | anoll |
---|---|
date | Thu, 01 Aug 2013 16:01:32 -0700 |
parents | 7ac80525ece9 |
children |
comparison
equal
deleted
inserted
replaced
12000:8d77d02828d9 | 12001:446cb5d25d03 |
---|---|
33 public class CheckUpperLimit { | 33 public class CheckUpperLimit { |
34 public static void main(String[] args) throws Exception { | 34 public static void main(String[] args) throws Exception { |
35 ProcessBuilder pb; | 35 ProcessBuilder pb; |
36 OutputAnalyzer out; | 36 OutputAnalyzer out; |
37 | 37 |
38 pb = ProcessTools.createJavaProcessBuilder("-XX:ReservedCodeCacheSize=2048m", "-version"); | |
39 out = new OutputAnalyzer(pb.start()); | |
40 out.shouldHaveExitValue(0); | |
41 | |
42 pb = ProcessTools.createJavaProcessBuilder("-XX:ReservedCodeCacheSize=2049m", "-version"); | 38 pb = ProcessTools.createJavaProcessBuilder("-XX:ReservedCodeCacheSize=2049m", "-version"); |
43 out = new OutputAnalyzer(pb.start()); | 39 out = new OutputAnalyzer(pb.start()); |
44 out.shouldContain("Invalid ReservedCodeCacheSize="); | 40 out.shouldContain("Invalid ReservedCodeCacheSize="); |
45 out.shouldHaveExitValue(1); | 41 out.shouldHaveExitValue(1); |
46 } | 42 } |