diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-12-18 18:40:12 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-12-18 18:41:33 -0800 |
commit | a913a583f00a31c37a1572089fe8898a6c19536c (patch) | |
tree | 10b24de1700b6b8e0b017922755076e042423467 /llvm/lib/IR/ModuleSummaryIndex.cpp | |
parent | bf0870d8640df27b6bb082de0347008240cb0e67 (diff) | |
download | llvm-a913a583f00a31c37a1572089fe8898a6c19536c.zip llvm-a913a583f00a31c37a1572089fe8898a6c19536c.tar.gz llvm-a913a583f00a31c37a1572089fe8898a6c19536c.tar.bz2 |
[lldb] Simplify the is_finalized logic in process and make it thread safe.
This is a speculative fix when looking at the finalization code in
Process. It tackles the following issues:
- Adds synchronization to prevent races between threads.
- Marks the process as finalized/invalid as soon as Finalize is called
rather than at the end.
- Simplifies the code by using only a single instance variable to track
finalization.
Differential revision: https://reviews.llvm.org/D93479
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
0 files changed, 0 insertions, 0 deletions