diff options
author | 2022-06-22 14:44:08 +0100 | |
---|---|---|
committer | 2022-06-22 17:20:13 +0000 | |
commit | 7bf7220b44d733f6a7434ee0aab86b710d4219bf (patch) | |
tree | 2eb67f264c47e55b9b58a4f03a495d4ae01e93cc | |
parent | b1e8367665e1484b6e68dccd31b64daa7b6609b9 (diff) |
Disable test when the runtime is debuggable.
Test: 837-deopt
Bug: 233021156
Change-Id: Ic7502e840d8e2c44a72051f5d445e325ff097b83
-rw-r--r-- | test/837-deopt/src/Main.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/837-deopt/src/Main.java b/test/837-deopt/src/Main.java index 7687683e50..8e3ad7c1a0 100644 --- a/test/837-deopt/src/Main.java +++ b/test/837-deopt/src/Main.java @@ -36,6 +36,11 @@ class Main { public static void main(String[] args) throws Throwable { System.loadLibrary(args[0]); + if (isDebuggable()) { + // We do not deoptimize with inline caches when the app is debuggable, so just don't run the + // test. + return; + } test1(); test2(); } @@ -77,6 +82,7 @@ class Main { public static native void ensureJitCompiled(Class<?> cls, String methodName); public static native void ensureJitBaselineCompiled(Class<?> cls, String methodName); public static native boolean isInOsrCode(String methodName); + public static native boolean isDebuggable(); } // Define a subclass with another implementation of returnValue to deoptimize $noinline$foo and |