Replace all remaining uses with thread_local, which is a C++11
standard feature.
Depends on D87420
Differential D87478
scudo: Remove the THREADLOCAL macro. pcc on Sep 10 2020, 12:39 PM. Authored by
Details
Replace all remaining uses with thread_local, which is a C++11 Depends on D87420
Diff Detail
Event TimelineComment Actions I think that I one point in time I tried thread_local but a compiler (can't remember which one) was complaining about the constructors not being trivial or something to that extent. Comment Actions This was tested with clang but I also tried g++ 9.3.0 and it compiled there. Beyond that I reckon we should just rely on bots. Comment Actions For reference, I hit something similar at the beginning of this year with LLVM_THREAD_LOCAL on MacOS: https://reviews.llvm.org/D71059#1806509 Maybe it was similar to that.
Agreed. |