From e438ea046b4ec3b85ce07bc65c838d45cb3b05ac Mon Sep 17 00:00:00 2001 From: zh Date: Tue, 9 Sep 2025 10:02:42 +0800 Subject: [PATCH] remove second prof_data load Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICX18I Signed-off-by: zhuheng Change-Id: Ifb7ff456f8493c93a9735f58b8ce773a033c0df0 --- static_core/runtime/entrypoints/entrypoints.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/static_core/runtime/entrypoints/entrypoints.cpp b/static_core/runtime/entrypoints/entrypoints.cpp index ee8c0097ee..6e6f62ae63 100644 --- a/static_core/runtime/entrypoints/entrypoints.cpp +++ b/static_core/runtime/entrypoints/entrypoints.cpp @@ -1488,18 +1488,12 @@ extern "C" bool CallCompilerSlowPathOSR(ManagedThread *thread, Method *method, F extern "C" void UpdateBranchTaken([[maybe_unused]] Method *method, Frame *frame, const uint8_t *pc, ProfilingData *profDataIrtoc) { - // Add a second prof_data loading because without it THREAD_SANITIZER crashes - // NOTE(aantipina): investigate and delete the second loading (issue I6DTAA) - [[maybe_unused]] ProfilingData *profData = method->GetProfilingDataWithoutCheck(); profDataIrtoc->UpdateBranchTaken(pc - frame->GetInstruction()); } extern "C" void UpdateBranchUntaken([[maybe_unused]] Method *method, Frame *frame, const uint8_t *pc, ProfilingData *profDataIrtoc) { - // Add a second prof_data loading because without it THREAD_SANITIZER crashes - // NOTE(aantipina): investigate and delete the second loading - [[maybe_unused]] ProfilingData *profData = method->GetProfilingDataWithoutCheck(); profDataIrtoc->UpdateBranchNotTaken(pc - frame->GetInstruction()); } -- Gitee