aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Interp.cpp
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2025-05-13 10:52:36 +0200
committerGitHub <noreply@github.com>2025-05-13 01:52:36 -0700
commitc78e65cc980db9542b32049a5d96b00c64cbc47d (patch)
treecf68445b4f64ec8221f66adf79a0b24189d197ff /clang/lib/AST/ByteCode/Interp.cpp
parentba2dacd276522d483a38f786cce66b16a349446b (diff)
downloadllvm-c78e65cc980db9542b32049a5d96b00c64cbc47d.zip
llvm-c78e65cc980db9542b32049a5d96b00c64cbc47d.tar.gz
llvm-c78e65cc980db9542b32049a5d96b00c64cbc47d.tar.bz2
[lldb][plugin] Use counter directly for number of readers (#139252)
Here we were initializing & locking a shared_mutex in a thread, while releasing it in the parent which may/often turned out to be a different thread (shared_mutex::unlock_shared is undefined behavior if called from a thread that doesn't hold the lock). Switch to counter to more simply keep track of number of readers and simply lock/unlock rather than utilizing reader mutex to verify last freed (and so requiring this matching thread init/destroy behavior).
Diffstat (limited to 'clang/lib/AST/ByteCode/Interp.cpp')
0 files changed, 0 insertions, 0 deletions