diff --git a/runtime/include/method.h b/runtime/include/method.h index 0456b54c5b2642a6f98b2523ff9048dc8eac9d00..1ed1c73723a8f4e524abd8ff88a7266750f56729 100644 --- a/runtime/include/method.h +++ b/runtime/include/method.h @@ -199,12 +199,7 @@ public: // constraints imposed on other reads or writes NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) method->pointer_.native_pointer.load(std::memory_order_relaxed), std::memory_order_relaxed); - // Atomic with release order reason: data race with compiled_entry_point_ with dependecies on writes before the - // store which should become visible acquire - compiled_entry_point_.store(method->IsNative() ? method->GetCompiledEntryPoint() - : GetCompiledCodeToInterpreterBridge(method), - std::memory_order_release); - SetCompilationStatus(CompilationStage::NOT_COMPILED); + SetCompiledEntryPoint(method->GetCompiledEntryPoint()); } Method() = delete;