Mercurial > hg > truffle
diff test/runtime/CDSCompressedKPtrs/XShareAuto.java @ 12280:9ed97b511b26
8024517: runtime/CDSCompressedKPtrs/XShareAuto.java failed with RuntimeException
Summary: Make sure CDS is off by default when running server compiler.
Reviewed-by: dholmes, coleenp
author | hseigel |
---|---|
date | Thu, 19 Sep 2013 11:04:23 -0400 |
parents | 35b99e7e0af2 |
children | e567d5afd4dd |
line wrap: on
line diff
--- a/test/runtime/CDSCompressedKPtrs/XShareAuto.java Thu Sep 19 08:47:46 2013 +0200 +++ b/test/runtime/CDSCompressedKPtrs/XShareAuto.java Thu Sep 19 11:04:23 2013 -0400 @@ -33,16 +33,9 @@ public class XShareAuto { public static void main(String[] args) throws Exception { - if (!Platform.is64bit()) { - System.out.println("ObjectAlignmentInBytes for CDS is only " + - "supported on 64bit platforms; this plaform is " + - System.getProperty("sun.arch.data.model")); - System.out.println("Skipping the test"); - return; - } ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( - "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./sample.jsa", - "-Xshare:dump"); + "-server", "-XX:+UnlockDiagnosticVMOptions", + "-XX:SharedArchiveFile=./sample.jsa", "-Xshare:dump"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("Loading classes to share"); output.shouldHaveExitValue(0);