diff options
| author | 2021-12-03 19:18:24 +0000 | |
|---|---|---|
| committer | 2021-12-07 10:36:11 +0000 | |
| commit | 76ec6f6562229033b2fecc08c01bef58a9488c92 (patch) | |
| tree | 716c4a60b9c7fdf42b3d2cd5cbc6a9bd6b8e69b3 /runtime/stack.cc | |
| parent | 35013bade8ec071b9d24b4e4ce424ff4d5c86436 (diff) | |
Simplify and document entrypoint toggling in instrumentation.
Test: test.py, run-libjdwp-test
Change-Id: I51d39cc868d7b56b043e9e5de6abb550810b2234
Diffstat (limited to 'runtime/stack.cc')
| -rw-r--r-- | runtime/stack.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc index eb0fe5692d..7f1f47f2bc 100644 --- a/runtime/stack.cc +++ b/runtime/stack.cc @@ -787,8 +787,7 @@ QuickMethodFrameInfo StackVisitor::GetCurrentQuickFrameInfo() const { DCHECK(method->IsNative()); if (kIsDebugBuild && !method->IsCriticalNative()) { ClassLinker* class_linker = runtime->GetClassLinker(); - const void* entry_point = runtime->GetInstrumentation()->GetQuickCodeFor(method, - kRuntimePointerSize); + const void* entry_point = runtime->GetInstrumentation()->GetCodeForInvoke(method); CHECK(class_linker->IsQuickGenericJniStub(entry_point) || // The current entrypoint (after filtering out trampolines) may have changed // from GenericJNI to JIT-compiled stub since we have entered this frame. |