[PATCH] D102486: Use a non-recursive mutex in GsymCreator.

Simon Giesecke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 14 05:36:34 PDT 2021


simon.giesecke added a comment.

GSYM convertion still spends a significant time for locking in `GsymCreator::insertString` even with only 8 threads, so lock contention seems to be generally an issue here. I was wondering if we could avoid locking the mutex here, but using thread-local tables until finalization does not seem to be feasible since any thread might insert the same string IIUC and we want to have unique IDs at this point. A lock-free map might be an alternative here, though?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102486



More information about the llvm-commits mailing list