-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a race reading 'warmingUp' to decide request kind
Summary:There was a race reading the global 'warmingUp' flag which could potentially cause a request to start JITing (and thus marking hot functions and freeing s_func_counters) while later requests were still profiling (and thus writting to s_func_counters). This diff fixes the issue by reading the 'warmingUp' just once per request to decide its kind. Reviewed By: swtaarrs Differential Revision: D3051381 fb-gh-sync-id: e1f2327526064aa9237d528e5dcc8fa787c24981 shipit-source-id: e1f2327526064aa9237d528e5dcc8fa787c24981
- Loading branch information
Showing
2 changed files
with
18 additions
and
10 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