diff options
author | 2022-12-16 18:38:16 +0000 | |
---|---|---|
committer | 2023-01-16 09:52:42 +0000 | |
commit | e52e4fb74e9f13009af4ffbfb2e5103ce035a94b (patch) | |
tree | f8ed6faeb6204eb3e3c67b1b88f49a4482a43ebe /runtime/entrypoints/entrypoint_utils.cc | |
parent | e92bc531dc1eeb50cd4f46e2fb4ea581a24b45ac (diff) |
We no longer use instrumentation stubs remove the support code
Remove the code to handle instrumentation stubs. We no longer use them.
Bug: 206029744
Test: art/test.py
Change-Id: I2b7eabf80bd34989314c0d2b299d7b1b35de0b85
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.cc')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.cc b/runtime/entrypoints/entrypoint_utils.cc index ae6e98a544..e6d0adb1be 100644 --- a/runtime/entrypoints/entrypoint_utils.cc +++ b/runtime/entrypoints/entrypoint_utils.cc @@ -211,9 +211,8 @@ static inline std::pair<ArtMethod*, uintptr_t> DoGetCalleeSaveMethodOuterCallerA static inline ArtMethod* DoGetCalleeSaveMethodCaller(ArtMethod* outer_method, uintptr_t caller_pc, bool do_caller_check) - REQUIRES_SHARED(Locks::mutator_lock_) { - ArtMethod* caller = outer_method; - if (LIKELY(caller_pc != reinterpret_cast<uintptr_t>(GetQuickInstrumentationExitPc()))) { + REQUIRES_SHARED(Locks::mutator_lock_) { + ArtMethod* caller = outer_method; if (outer_method != nullptr) { const OatQuickMethodHeader* current_code = outer_method->GetOatQuickMethodHeader(caller_pc); DCHECK(current_code != nullptr); @@ -236,14 +235,7 @@ static inline ArtMethod* DoGetCalleeSaveMethodCaller(ArtMethod* outer_method, visitor.WalkStack(); CHECK_EQ(caller, visitor.caller); } - } else { - // We're instrumenting, just use the StackVisitor which knows how to - // handle instrumented frames. - NthCallerVisitor visitor(Thread::Current(), 1, true); - visitor.WalkStack(); - caller = visitor.caller; - } - return caller; + return caller; } ArtMethod* GetCalleeSaveMethodCaller(ArtMethod** sp, CalleeSaveType type, bool do_caller_check) |