diff options
| author | 2022-08-10 04:34:22 +0000 | |
|---|---|---|
| committer | 2022-08-10 04:34:22 +0000 | |
| commit | 7d97b03d77ad3ede77813cec449f9f333da6ac18 (patch) | |
| tree | c1dddd4d2efba7ad5fcd395807591f35e2f0ebcd /openjdkjvmti/OpenjdkJvmTi.cc | |
| parent | f5545a9773fbd676795f4366039326088921abcb (diff) | |
| parent | 6ecfa91a040bb1a58e57ad99ab2765cd911e845a (diff) | |
Update instrumentation support for non-java debuggable runtimes am: 6ecfa91a04
Original change: https://android-review.googlesource.com/c/platform/art/+/2169088
Change-Id: I1086ee1b27c5a86b4d8a2af14ffe1d52c9044c4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'openjdkjvmti/OpenjdkJvmTi.cc')
| -rw-r--r-- | openjdkjvmti/OpenjdkJvmTi.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/openjdkjvmti/OpenjdkJvmTi.cc b/openjdkjvmti/OpenjdkJvmTi.cc index 09900e1f73..d7db3d2168 100644 --- a/openjdkjvmti/OpenjdkJvmTi.cc +++ b/openjdkjvmti/OpenjdkJvmTi.cc @@ -89,12 +89,6 @@ AllocationManager* gAllocManager; } \ } while (false) -// Returns whether we are able to use all jvmti features. -static bool IsFullJvmtiAvailable() { - art::Runtime* runtime = art::Runtime::Current(); - return runtime->GetInstrumentation()->IsForcedInterpretOnly() || runtime->IsJavaDebuggable(); -} - class JvmtiFunctions { private: static jvmtiError getEnvironmentError(jvmtiEnv* env) { @@ -1474,13 +1468,7 @@ extern "C" bool ArtPlugin_Initialize() { FieldUtil::Register(gEventHandler); BreakpointUtil::Register(gEventHandler); Transformer::Register(gEventHandler); - - { - // Make sure we can deopt anything we need to. - art::ScopedSuspendAll ssa(__FUNCTION__); - gDeoptManager->FinishSetup(); - } - + gDeoptManager->FinishSetup(); runtime->GetJavaVM()->AddEnvironmentHook(GetEnvHandler); return true; |