forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1836225 - Prevent stack walking deadlock with MOZ_PROFILER_STARTU…
…P=1. r=handyman We currently fail to guarantee that OnEndDllLoad is called on the same gLoaderObserver as OnBeginDllLoad. We must implement additional synchronization to prevent a race condition where a call to LoaderPrivateAPIImp::SetObserver would come in between the two and change gLoaderObserver. This has led to issues when using MOZ_PROFILER_STARTUP=1 where we would have sStackWalkSuppressions reach (size_t)-1 instead of 0, later resulting in deadlock or missing stacks. See bug 1687510 comment 10 for extra details. Depends on D181436 Differential Revision: https://phabricator.services.mozilla.com/D181437
- Loading branch information
Showing
3 changed files
with
34 additions
and
3 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