summaryrefslogtreecommitdiff
path: root/test/common/stack_inspect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/stack_inspect.cc')
-rw-r--r--test/common/stack_inspect.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/common/stack_inspect.cc b/test/common/stack_inspect.cc
index 79c7a36a8e..7537705d21 100644
--- a/test/common/stack_inspect.cc
+++ b/test/common/stack_inspect.cc
@@ -195,7 +195,8 @@ extern "C" JNIEXPORT jobject JNICALL Java_Main_getThisOfCaller(
if (stack_visitor->GetMethod() == nullptr ||
stack_visitor->GetMethod()->IsNative() ||
(stack_visitor->GetCurrentShadowFrame() == nullptr &&
- !Runtime::Current()->IsAsyncDeoptimizeable(stack_visitor->GetCurrentQuickFramePc()))) {
+ !Runtime::Current()->IsAsyncDeoptimizeable(stack_visitor->GetMethod(),
+ stack_visitor->GetCurrentQuickFramePc()))) {
return true;
}
result = soa.AddLocalReference<jobject>(stack_visitor->GetThisObject());