1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 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. |
40 public class TestLinkageErrorInGenerateOopMap { |
40 public class TestLinkageErrorInGenerateOopMap { |
41 |
41 |
42 public static void main(String args[]) throws Exception { |
42 public static void main(String args[]) throws Exception { |
43 if (args.length == 0) { |
43 if (args.length == 0) { |
44 // Spawn new VM instance to execute test |
44 // Spawn new VM instance to execute test |
45 String[] flags = {"-noverify", "-XX:-TieredCompilation", |
45 String[] flags = {"-XX:-BytecodeVerificationRemote", |
|
46 "-XX:-BytecodeVerificationLocal", |
|
47 "-XX:-TieredCompilation", |
46 "-XX:CompileCommand=dontinline,compiler/linkage/OSRWithBadOperandStack.m*", |
48 "-XX:CompileCommand=dontinline,compiler/linkage/OSRWithBadOperandStack.m*", |
47 "compiler.linkage.TestLinkageErrorInGenerateOopMap", "run"}; |
49 "compiler.linkage.TestLinkageErrorInGenerateOopMap", "run"}; |
48 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(flags); |
50 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(flags); |
49 OutputAnalyzer out = new OutputAnalyzer(pb.start()); |
51 OutputAnalyzer out = new OutputAnalyzer(pb.start()); |
50 if (out.getExitValue() != 0) { |
52 if (out.getExitValue() != 0) { |