forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory pool lock order reversion detected by Meta internal tsan t…
…est (facebookincubator#10051) Summary: We tsan lock to access memory reclaimer which is no-op in release build. Since we now report the actual used memory in memory pool stats which might grab the child lock while holding pool lock. There is another code path in child pool creation which grab the pool lock to access parent memory reclaimer (which is no-op in release build) while holding the child lock on child pool creation. This PR un-break this deadlock in tsan build by moving the memory reclaimer check in parent pool without holding any lock. Also fix tsan failures in MockSharedArbitratorTest Pull Request resolved: facebookincubator#10051 Reviewed By: tanjialiang Differential Revision: D58171780 Pulled By: xiaoxmeng fbshipit-source-id: a2872cfd3ccf421a00d2cafa5fdaed2cdc03b109
- Loading branch information
1 parent
3a7f8a8
commit a6bb4d8
Showing
2 changed files
with
62 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters