summaryrefslogtreecommitdiff
path: root/runtime/native/dalvik_system_VMDebug.cc
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2022-08-12 06:52:18 +0000
committer Mythri Alle <mythria@google.com> 2022-08-12 07:23:03 +0000
commit7cc22bb96e4e05cf63661eed7fd3dda5304bdacc (patch)
treeb39731daca19a3873c32bc9147147fd0de77e635 /runtime/native/dalvik_system_VMDebug.cc
parent889403b999b236c055df6e64019dcca8622322fc (diff)
Revert "Update instrumentation support for non-java debuggable runtimes"
This reverts commit 6ecfa91a040bb1a58e57ad99ab2765cd911e845a. Reason for revert: Failures on jit-on-first-use config: https://android-build.googleplex.com/builds/submitted/8937466/art-jit-on-first-use/latest/view/logs/build.log Change-Id: I5d910abf27f5b2dcf3af646b4077af78290c5fdc
Diffstat (limited to 'runtime/native/dalvik_system_VMDebug.cc')
-rw-r--r--runtime/native/dalvik_system_VMDebug.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_VMDebug.cc b/runtime/native/dalvik_system_VMDebug.cc
index 1d5ac02c8b..2e09c9f2fe 100644
--- a/runtime/native/dalvik_system_VMDebug.cc
+++ b/runtime/native/dalvik_system_VMDebug.cc
@@ -466,7 +466,7 @@ static void VMDebug_allowHiddenApiReflectionFrom(JNIEnv* env, jclass, jclass j_c
Runtime* runtime = Runtime::Current();
ScopedObjectAccess soa(env);
- if (!runtime->IsJavaDebuggableAtInit()) {
+ if (!runtime->IsJavaDebuggable()) {
ThrowSecurityException("Can't exempt class, process is not debuggable.");
return;
}