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. |
31 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
31 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
32 * sun.hotspot.WhiteBox$WhiteBoxPermission |
32 * sun.hotspot.WhiteBox$WhiteBoxPermission |
33 * @run driver compiler.aot.AotCompiler -libname CompiledInvokeVirtual2AotTest.so |
33 * @run driver compiler.aot.AotCompiler -libname CompiledInvokeVirtual2AotTest.so |
34 * -class compiler.calls.common.InvokeVirtual |
34 * -class compiler.calls.common.InvokeVirtual |
35 * -compile compiler.calls.common.InvokeVirtual.callee.* |
35 * -compile compiler.calls.common.InvokeVirtual.callee.* |
36 * @run main/othervm -Xbatch -XX:+UseAOT |
36 * @run main/othervm -Xbatch -XX:+UnlockExperimentalVMOptions -XX:+UseAOT |
37 * -XX:AOTLibrary=./CompiledInvokeVirtual2AotTest.so |
37 * -XX:AOTLibrary=./CompiledInvokeVirtual2AotTest.so |
38 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. |
38 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. |
39 * compiler.calls.common.InvokeVirtual -compileCaller 1 |
39 * compiler.calls.common.InvokeVirtual -compileCaller 1 |
40 * -checkCalleeCompileLevel -1 -checkCallerCompileLevel 1 |
40 * -checkCalleeCompileLevel -1 -checkCallerCompileLevel 1 |
41 * @run main/othervm -Xbatch -XX:+UseAOT |
41 * @run main/othervm -Xbatch -XX:+UnlockExperimentalVMOptions -XX:+UseAOT |
42 * -XX:AOTLibrary=./CompiledInvokeVirtual2AotTest.so |
42 * -XX:AOTLibrary=./CompiledInvokeVirtual2AotTest.so |
43 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. |
43 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. |
44 * compiler.calls.common.InvokeVirtual -compileCaller 4 |
44 * compiler.calls.common.InvokeVirtual -compileCaller 4 |
45 * -checkCallerCompileLevel 4 -checkCalleeCompileLevel -1 |
45 * -checkCallerCompileLevel 4 -checkCalleeCompileLevel -1 |
46 * @summary check calls from jit-compiled to aot code using invokevirtual |
46 * @summary check calls from jit-compiled to aot code using invokevirtual |