diff options
author | 2015-09-15 17:00:52 +0100 | |
---|---|---|
committer | 2015-09-15 17:50:43 +0100 | |
commit | 72f7b880d5d0057b9fac3a51ef3a0f22909bc633 (patch) | |
tree | 5a5a92f0c52bd334f662ba2f51885540874973bb /runtime/quick_exception_handler.cc | |
parent | b505997b2176bd29a108cb6c33d06d4ef29ba001 (diff) |
ART: Fix 004-ReferenceMap run test
This patch adds a new option to ArtMethod::ToNativeQuickPc to select
the order of iteration over stack maps. The method is only used by
the runtime to find native_pc of catch blocks, but also by the
004-ReferenceMap test which uses it to find native_pc of a safepoint.
Change-Id: Idb2b34aabf1ac7249c30a00806af7d63d7e682dd
Diffstat (limited to 'runtime/quick_exception_handler.cc')
-rw-r--r-- | runtime/quick_exception_handler.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index b9d76b491c..c905b63c6c 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -97,7 +97,8 @@ class CatchBlockStackVisitor FINAL : public StackVisitor { if (found_dex_pc != DexFile::kDexNoIndex) { exception_handler_->SetHandlerMethod(method); exception_handler_->SetHandlerDexPc(found_dex_pc); - exception_handler_->SetHandlerQuickFramePc(method->ToNativeQuickPc(found_dex_pc)); + exception_handler_->SetHandlerQuickFramePc( + method->ToNativeQuickPc(found_dex_pc, /* is_catch_handler */ true)); exception_handler_->SetHandlerQuickFrame(GetCurrentQuickFrame()); return false; // End stack walk. } |