[PATCH] D122922: [lld][common][lld-macho][lld-coff] Support per-thread allocators and StringSavers

Thorsten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 13:15:51 PDT 2022


tschuett added inline comments.


================
Comment at: lld/Common/Memory.cpp:41
+    llvm::sys::ScopedWriter lock(contextMutex);
+    perThreadContexts.push_back(&threadContext);
+  }
----------------
Would an assert on `perThreadContexts.size() < FOO` be helpful?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122922



More information about the llvm-commits mailing list