Commit 239b08c3 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Set libunwind to use UNW_CACHE_PER_THREAD

Idea from Marius.  This seems to improve exception performance quite a bit,
though interestingly also some of the other benchmarks as well.
parent 5c42a2ab
......@@ -43,6 +43,9 @@
#define UNW_LOCAL_ONLY
#include <libunwind.h>
namespace {
int _dummy_ = unw_set_caching_policy(unw_local_addr_space, UNW_CACHE_PER_THREAD);
}
// Definition from libunwind, but standardized I suppose by the format of the .eh_frame_hdr section:
struct uw_table_entry {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment