From 56ea350354917234963fefcf0492f2488c6d2ecd Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 8 Sep 2022 09:51:57 +0100 Subject: 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 --- runtime/quick_exception_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/quick_exception_handler.cc') 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); -- cgit v1.2.3-59-g8ed1b