Improve Unix exception handling performance
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 1 Oct 2015 00:55:30 +0000 (02:55 +0200)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 1 Oct 2015 00:55:30 +0000 (02:55 +0200)
commit97fe10f743275d5d3ff09dc7315afe3dd6dc6972
tree9bfa92658fd14523b502298daa86155a14990356
parenta2491e37b0ed75de0aea643be5ec653fa3984262
Improve Unix exception handling performance

This change adds caching of thread base / limit in PAL. Profiling has shown
extraction of the base / limit using pthread APIs to be the main contributors
to the bad performance.
With this fix, a simple loop with throw / catch is about 40 times faster than
before.
src/pal/src/include/pal/thread.hpp
src/pal/src/thread/thread.cpp