llvm-project
1073aadc - [ctxprof] Preserve live current root across nested and recursive entries

Commit
1 day ago
[ctxprof] Preserve live current root across nested and recursive entries A failed TryLock in tryStartContextGivenRoot previously cleared __llvm_ctx_profile_current_context_root even when the thread already held an outer root, preventing the outer root from unlocking Taken on exit. Keep a live __llvm_ctx_profile_current_context_root intact across nested or recursive root entries and track the entry depth of the held root so Taken is unlocked only on its outermost exit.
Author
Committer
Parents
Loading