-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make \
BugReport#handleCrash()\
re-entrant to avoid deadlocks.
Eliminating a synchronized block using a singleton lock allows this method to be invoked from multiple threads concurrently, eliminating a deadlock when `BlazeModule#blazeShutdownOnCrash(DetailedExitCode)` also invokes `BugReport#handleCrash()`. This deadlock has been seen in practice when `BuildEventServiceModule#blazeShutdownOnCrash(DetailedExitCode)` fails to cleanup its `BuildEventArtifactUploaderFactory`. PiperOrigin-RevId: 548663925 Change-Id: Icf35b3be429d5708acb83dc052e51aecf50e466c
- Loading branch information
1 parent
d39cf07
commit 7311f76
Showing
3 changed files
with
144 additions
and
45 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