masaori335 opened a new pull request, #13330:
URL: https://github.com/apache/trafficserver/pull/13330

   Enabling -Wthread-safety tree-wide surfaced findings in Bravo.h on macOS, 
where libc++ marks the underlying std::shared_mutex as a capability: the 
wrapper acquires and releases it across method boundaries and on fast/slow-path 
branches the analyzer cannot follow. Fedora CI uses libstdc++, which does not 
annotate std types, so it never saw these.
   
   Make ts::bravo::shared_mutex_impl a real capability so the contract is 
checked on every Clang, not papered over on one std lib; its lock-driving 
bodies are the trusted implementation and stay exempted, matching the 
ts::shared_mutex pattern. Make the reader guard a rigid scoped capability -- 
acquire in constructor, release in destructor, no copy/move/defer/release -- 
which the analysis tracks with no exemption; the movable std::shared_lock-style 
forms it replaced could not be tracked, and no caller used them. Restructure 
the unit test's try-lock asserts so the acquire gates a branch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to