< prev index next >

test/runtime/SharedArchiveFile/SharedBaseAddress.java

Print this page
rev 8016 : [mq]: unique-cds

*** 1,7 **** /* ! * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 45,70 **** // @ignore JDK-8044600 if (Platform.isSolaris() && Platform.isSparc()) return; for (String testEntry : testTable) { System.out.println("sharedBaseAddress = " + testEntry); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-XX:+UnlockDiagnosticVMOptions", ! "-XX:SharedArchiveFile=test.jsa", "-XX:SharedBaseAddress=" + testEntry, "-Xshare:dump"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("Loading classes to share"); try { pb = ProcessTools.createJavaProcessBuilder( "-XX:+UnlockDiagnosticVMOptions", ! "-XX:SharedArchiveFile=test.jsa", "-Xshare:on", "-version"); output = new OutputAnalyzer(pb.start()); output.shouldContain("sharing"); output.shouldHaveExitValue(0); --- 45,71 ---- // @ignore JDK-8044600 if (Platform.isSolaris() && Platform.isSparc()) return; for (String testEntry : testTable) { + String filename = "SharedBaseAddress" + testEntry + ".jsa"; System.out.println("sharedBaseAddress = " + testEntry); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-XX:+UnlockDiagnosticVMOptions", ! "-XX:SharedArchiveFile=" + filename, "-XX:SharedBaseAddress=" + testEntry, "-Xshare:dump"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("Loading classes to share"); try { pb = ProcessTools.createJavaProcessBuilder( "-XX:+UnlockDiagnosticVMOptions", ! "-XX:SharedArchiveFile=" + filename, "-Xshare:on", "-version"); output = new OutputAnalyzer(pb.start()); output.shouldContain("sharing"); output.shouldHaveExitValue(0);
< prev index next >