forked from llvm/llvm-project
-
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.
[compiler-rt] During profile flushing, setup SIGKILL mask earlier (ll…
…vm#68622) In multi threaded application, it is possible for one thread to terminate the program while another is flushing profile information. We setup a signal mask to delay SIGKILL so that we can safely flush the profile. This patch setups the mask earlier: it reduces the window during which a SIGKILL can end the computation prematurely. This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1850940, where a profiled firefox was encountering several: LLVM Profile Error: Failed to write file "default_*.profraw": Broken pipe Co-authored-by: serge-sans-paille <[email protected]>
- Loading branch information
1 parent
135f57d
commit 97b989b
Showing
1 changed file
with
16 additions
and
8 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