-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: libc++ 18 adds `__cxa_init_primary_exception` and uses it to speed up `std::make_exception_ptr`, so `exception_ptr` objects created by it would not have stack traces attached (since they bypassed `__cxa_throw`, which Lyra was using to attach the stack traces). `__cxa_throw` calls `__cxa_init_primary_exception`, so we can hook the new function instead where supported. Change Lyra's APIs a bit to abstract the choice of hooking function. Reviewed By: yozhu, thevinster Differential Revision: D58622936 fbshipit-source-id: c7a8213c8cbcce847b70002130f133da07852b9f
- Loading branch information
1 parent
231bed1
commit 4ec7ce4
Showing
2 changed files
with
83 additions
and
34 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