Commit Graph

5 Commits

Author SHA1 Message Date
8923feceac runtime/eh_artiq: use forced unwind
This patches ports the LLVM libunwind newly added forced unwinding
function. This enables us to run forced unwinding to obtain correct
backtrace when uncaught exceptions occur.

This patch also changes the exception handling scheme from the standard
two-phase unwinding to single phase using forced unwinding. This brings
some performance improvement and prepared for later nested exception
support. For nested exceptions, we will have to record the backtrace
regardless if the exception is an uncaught exception, as there can be
another exception being thrown while executing the finally block for
caught exceptions, and we will lose the backtrace if we don't store it
earlier before running the cleanup pads.
2022-01-14 13:35:24 +08:00
64dad88a32 Kernel exception: fixed top level finally. (#70)
Fixes #70.
2020-07-23 14:09:15 +08:00
d915211264 Libunwind: patched phase1 end of stack detection. 2020-07-02 09:50:53 +08:00
f82ffe8cf2 Libunwind: use dyld instead of static linker symbols for unwind section. 2020-06-30 17:12:02 +08:00
fd229a1b26 Copied LLVM Libunwind from commit 3e6ec2a 2020-06-30 16:52:49 +08:00