summaryrefslogtreecommitdiff
path: root/openjdkjvmti/art_jvmti.h
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 /openjdkjvmti/art_jvmti.h
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 'openjdkjvmti/art_jvmti.h')
-rw-r--r--openjdkjvmti/art_jvmti.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/openjdkjvmti/art_jvmti.h b/openjdkjvmti/art_jvmti.h
index bc965a232f..cdda09b9e7 100644
--- a/openjdkjvmti/art_jvmti.h
+++ b/openjdkjvmti/art_jvmti.h
@@ -47,11 +47,9 @@
#include "base/strlcpy.h"
#include "base/mutex.h"
#include "events.h"
-#include "instrumentation.h"
#include "jni/java_vm_ext.h"
#include "jni/jni_env_ext.h"
#include "jvmti.h"
-#include "runtime.h"
#include "ti_breakpoint.h"
namespace art {
@@ -71,13 +69,6 @@ class ObjectTagTable;
// This is the value 0x70010200.
static constexpr jint kArtTiVersion = JVMTI_VERSION_1_2 | 0x40000000;
-// Returns whether we are able to use all jvmti features.
-static inline bool IsFullJvmtiAvailable() {
- art::Runtime* runtime = art::Runtime::Current();
- return runtime->GetInstrumentation()->IsForcedInterpretOnly() ||
- runtime->IsJavaDebuggableAtInit();
-}
-
// A structure that is a jvmtiEnv with additional information for the runtime.
struct ArtJvmTiEnv : public jvmtiEnv {
art::JavaVMExt* art_vm;