summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-09-08 09:51:57 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2022-09-12 11:54:22 +0000
commit56ea350354917234963fefcf0492f2488c6d2ecd (patch)
treea0bbcbc4371175c6905a44beeb87c848eda8083a /runtime/interpreter/interpreter.cc
parent7c8835df16147b9096dd4c9380ab4b5f700ea17d (diff)
Cleanups around shadow frame creation.
Make sure it's never linked to another shadow frame before it starts doing execution. Test: test.py Change-Id: Ie34608fc2fdcf2dcfad9620349c0cc8a5e1c175f
Diffstat (limited to 'runtime/interpreter/interpreter.cc')
-rw-r--r--runtime/interpreter/interpreter.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/interpreter/interpreter.cc b/runtime/interpreter/interpreter.cc
index e6fb221b10..64e0d42eec 100644
--- a/runtime/interpreter/interpreter.cc
+++ b/runtime/interpreter/interpreter.cc
@@ -385,9 +385,8 @@ void EnterInterpreterFromInvoke(Thread* self,
}
}
// Set up shadow frame with matching number of reference slots to vregs.
- ShadowFrame* last_shadow_frame = self->GetManagedStack()->GetTopShadowFrame();
ShadowFrameAllocaUniquePtr shadow_frame_unique_ptr =
- CREATE_SHADOW_FRAME(num_regs, last_shadow_frame, method, /* dex pc */ 0);
+ CREATE_SHADOW_FRAME(num_regs, method, /* dex pc */ 0);
ShadowFrame* shadow_frame = shadow_frame_unique_ptr.get();
self->PushShadowFrame(shadow_frame);