[PATCH] D134212: [Orc] Fix the SharedMemoryMapper dtor

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 09:17:19 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1c25ce1738df: [Orc] Fix the SharedMemoryMapper dtor (authored by aganea).

Changed prior to commit:
  https://reviews.llvm.org/D134212?vs=461314&id=465430#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134212/new/

https://reviews.llvm.org/D134212

Files:
  llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp


Index: llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp
+++ llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp
@@ -412,6 +412,7 @@
 }
 
 SharedMemoryMapper::~SharedMemoryMapper() {
+  std::lock_guard<std::mutex> Lock(Mutex);
   for (const auto &R : Reservations) {
 
 #if defined(LLVM_ON_UNIX) && !defined(__ANDROID__)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134212.465430.patch
Type: text/x-patch
Size: 429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221005/e16cbd08/attachment.bin>


More information about the llvm-commits mailing list