llvm-project
c7ccfc6d - Thread Safety Analysis: Support reentrant capabilities (#137133)

Commit
128 days ago
Thread Safety Analysis: Support reentrant capabilities (#137133) Introduce the `reentrant_capability` attribute, which may be specified alongside the `capability(..)` attribute to denote that the defined capability type is reentrant. Marking a capability as reentrant means that acquiring the same capability multiple times is safe, and does not produce warnings on attempted re-acquisition. The most significant changes required are plumbing to propagate if the attribute is present to a CapabilityExpr, and introducing ReentrancyDepth to the LockableFactEntry class.
Author
Parents
Loading