summary refs log tree commit diff stats
path: root/tests/overflw
diff options
context:
space:
mode:
authorReimer Behrends <behrends@gmail.com>2014-09-25 23:29:02 +0200
committerReimer Behrends <behrends@gmail.com>2014-09-25 23:29:02 +0200
commitf99c40f61bc47f98390aab42f686fcb697dc9ce8 (patch)
tree6aa9856aa5e9ca35e3fbfa7735505837e35dc6fd /tests/overflw
parent9f047f4351b100c929153d0070f3cd34752a08e1 (diff)
downloadNim-f99c40f61bc47f98390aab42f686fcb697dc9ce8.tar.gz
Improve setjmp()/longjmp() performance.
Exception handling for the C backend used setjmp()/longjmp()
unconditionally. However, on POSIX systems, these functions save and
restore the signal mask, adding considerable overhead to exception
handling, even where no exceptions are involved. The compiler and
library now try to use either _setjmp()/_longjmp() or
sigsetjmp()/siglongjmp() where possible, marked by the defines
"nimRawSetjmp" and "nimSigSetjmp", respectively. The define
"nimStdSetjmp" can be used to revert to setjmp()/longjmp() instead.
Diffstat (limited to 'tests/overflw')
0 files changed, 0 insertions, 0 deletions