-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid allocations in runtime crash callback
Summary: The runtime crash callback is intended to run in a signal handler environment, and so should not perform any memory allocations. While it currently likely does not allocate because of the small string optimisation, it is better to explicitly allocate the necessary storage on the stack. Reviewed By: tmikov Differential Revision: D63055368 fbshipit-source-id: 7042539bc74e5b8edca4f6d6239460658db53e0f
- Loading branch information
1 parent
4796f02
commit 27abbc4
Showing
1 changed file
with
28 additions
and
36 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