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