-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change lock order expecation between StaticMeta.lock_ and ThreadEntry…
…Set lock. Summary: The dispose() of a thread local copy of an object is called when a thread does a reset() on it. It can invoke arbitrary code including calling destroy() or reset() on other ThreadLocals. Such a call will need to acquire the StaticMeta's lock_. To enforce that lock order, we need to fix paths that today acquire a ThreadEntrySet lock after acquiring StaticMeta's lock_. Reviewed By: yfeldblum Differential Revision: D59076052 fbshipit-source-id: 0109d66b3a5f74d7460b8a2d27103f2e919677e9
- Loading branch information
1 parent
8885811
commit 0ba07a2
Showing
3 changed files
with
39 additions
and
18 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
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