Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save ~2ns from GLIBCXX
exception_ptr_get_type
and `exception_ptr_ge…
…t_object` Summary: I noticed `get_type` was unexpectedly slow at ~2.5ns. yfeldblum pointed out that `ptr.__cxa_exception_type` probably incurs a PLT lookup, and that we can safely elide this. The new `exception_ptr_get_type_` implementation is exactly the same as the FreeBSD version. I also visually checked the implementation against: - https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/libsupc%2B%2B/eh_ptr.cc#L138 - https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/libsupc%2B%2B/unwind-cxx.h Reviewed By: yfeldblum Differential Revision: D57792972 fbshipit-source-id: 1658ac7ef1f1f33cead11bf68747948cd522de33
- Loading branch information