From b77b698f4550458725b72d3a451adca765f369cc Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Thu, 8 Jun 2017 18:03:48 +0100 Subject: Check the to-space invariant on a delivered exception. Test: art/test/testrunner/testrunner.py Bug: 62339341 Bug: 12687968 Change-Id: Ida5e91031cd94429a72fcc9d4d1333d21dd07421 --- runtime/quick_exception_handler.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'runtime/quick_exception_handler.cc') diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index d8b62370b8..f94923e065 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -166,10 +166,9 @@ void QuickExceptionHandler::FindCatch(ObjPtr exception) { << line_number << ")"; } } - if (clear_exception_) { - // Exception was cleared as part of delivery. - DCHECK(!self_->IsExceptionPending()); - } else { + // Exception was cleared as part of delivery. + DCHECK(!self_->IsExceptionPending()); + if (!clear_exception_) { // Put exception back in root set with clear throw location. self_->SetException(exception_ref.Get()); } -- cgit v1.2.3-59-g8ed1b