[all-commits] [llvm/llvm-project] 33c442: [Reland][ADT][ConcurrentHashTable] adapt Concurren...
avl-llvm via All-commits
all-commits at lists.llvm.org
Wed Apr 12 02:36:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 33c442118f3ed988190b9fd3f7c065612803ef7b
https://github.com/llvm/llvm-project/commit/33c442118f3ed988190b9fd3f7c065612803ef7b
Author: Alexey Lapshin <a.v.lapshin at mail.ru>
Date: 2023-04-12 (Wed, 12 Apr 2023)
Changed paths:
M llvm/include/llvm/ADT/ConcurrentHashtable.h
M llvm/include/llvm/DWARFLinkerParallel/StringPool.h
M llvm/lib/DWARFLinkerParallel/StringPool.cpp
M llvm/unittests/ADT/ConcurrentHashtableTest.cpp
Log Message:
-----------
[Reland][ADT][ConcurrentHashTable] adapt ConcurrentHashTable and its users to LLVM_ENABLE_THREADS=0 mode.
This patch hides thread specific handling under LLVM_ENABLE_THREADS guard.
It also removes usages of thread_local variables, since it has a weak
support on some platforms. Instead, the patch uses single mutex for locking
allocator. That may be replaced with more effective allocator later.
f.e. D142318
Differential Revision: https://reviews.llvm.org/D147649
More information about the All-commits
mailing list