summaryrefslogtreecommitdiffstats
path: root/runtime/quick_exception_handler.cc
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2015-04-27 15:19:41 -0700
committerChristopher Ferris <cferris@google.com>2015-05-04 12:10:07 -0700
commit241a9588c6d7d0fcb4c92da40c7141863930083a (patch)
tree4a6868893dc742f6322775d198a2305f645f2f3f /runtime/quick_exception_handler.cc
parenta93b104b47da67eaa50f8a6b7280cc6c438ef37b (diff)
downloadart-241a9588c6d7d0fcb4c92da40c7141863930083a.zip
art-241a9588c6d7d0fcb4c92da40c7141863930083a.tar.gz
art-241a9588c6d7d0fcb4c92da40c7141863930083a.tar.bz2
Fix mismatched new[]/delete.
Another two cases where a new[] is used but only a delete occurs. Bug: 18202869 Change-Id: If68264807150f3a9783e44ef8823cc366bff8df2
Diffstat (limited to 'runtime/quick_exception_handler.cc')
-rw-r--r--runtime/quick_exception_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc
index 2432603..a80eed6 100644
--- a/runtime/quick_exception_handler.cc
+++ b/runtime/quick_exception_handler.cc
@@ -202,7 +202,8 @@ class DeoptimizeStackVisitor FINAL : public StackVisitor {
h_method, m->GetAccessFlags(), true, true, true, true);
bool verifier_success = verifier.Verify();
CHECK(verifier_success) << PrettyMethod(h_method.Get());
- ShadowFrame* new_frame = ShadowFrame::Create(num_regs, nullptr, h_method.Get(), dex_pc);
+ ShadowFrame* new_frame = ShadowFrame::CreateDeoptimizedFrame(
+ num_regs, nullptr, h_method.Get(), dex_pc);
self_->SetShadowFrameUnderConstruction(new_frame);
const std::vector<int32_t> kinds(verifier.DescribeVRegs(dex_pc));