equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
91 |
91 |
92 private void runAndCheckHelloWorld(String checkString) { |
92 private void runAndCheckHelloWorld(String checkString) { |
93 ProcessBuilder pb; |
93 ProcessBuilder pb; |
94 try { |
94 try { |
95 pb = ProcessTools.createJavaProcessBuilder(true, "-cp", ".", |
95 pb = ProcessTools.createJavaProcessBuilder(true, "-cp", ".", |
96 "-XX:+UseAOT", "-XX:AOTLibrary=./" + LIB_NAME, |
96 "-XX:+UnlockExperimentalVMOptions", "-XX:+UseAOT", |
97 HELLO_WORLD_CLASS_NAME); |
97 "-XX:AOTLibrary=./" + LIB_NAME, HELLO_WORLD_CLASS_NAME); |
98 } catch (Exception e) { |
98 } catch (Exception e) { |
99 throw new Error("Can't create ProcessBuilder to run " |
99 throw new Error("Can't create ProcessBuilder to run " |
100 + HELLO_WORLD_CLASS_NAME + " " + e, e); |
100 + HELLO_WORLD_CLASS_NAME + " " + e, e); |
101 } |
101 } |
102 OutputAnalyzer oa; |
102 OutputAnalyzer oa; |