[Lldb-commits] [PATCH] D93479: [lldb] Simplify the is_finalized logic in process and make it thread safe.
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 17 11:35:52 PST 2020
JDevlieghere created this revision.
JDevlieghere added reviewers: jingham, vsk.
Herald added a subscriber: jfb.
JDevlieghere requested review of this revision.
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5151 bytes
Desc: not available
More information about the lldb-commits