summaryrefslogtreecommitdiff
path: root/runtime/quick_exception_handler.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/quick_exception_handler.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/quick_exception_handler.cc')
-rw-r--r--runtime/quick_exception_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc
index 8029c03315..82f50346e2 100644
--- a/runtime/quick_exception_handler.cc
+++ b/runtime/quick_exception_handler.cc
@@ -422,7 +422,7 @@ class DeoptimizeStackVisitor final : public StackVisitor {
CodeItemDataAccessor accessor(method->DexInstructionData());
const size_t num_regs = accessor.RegistersSize();
if (new_frame == nullptr) {
- new_frame = ShadowFrame::CreateDeoptimizedFrame(num_regs, nullptr, method, GetDexPc());
+ new_frame = ShadowFrame::CreateDeoptimizedFrame(num_regs, method, GetDexPc());
updated_vregs = nullptr;
} else {
updated_vregs = GetThread()->GetUpdatedVRegFlags(frame_id);