diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-09-26 14:34:58 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-09-26 15:39:18 -0400 |
commit | 1825cbdbdf08ed4bd6fd6794852596078953298a (patch) | |
tree | 5c76215fe2cfc87729b8c5f03fb8f5cd5277a9c2 /includes | |
parent | 7fb89e81aa26d546c468a780b57cbdd5ab189ec2 (diff) | |
download | haskell-1825cbdbdf08ed4bd6fd6794852596078953298a.tar.gz |
Switch VEH to VCH and allow disabling of SEH completely.
Exception handling on Windows is unfortunately a bit complicated.
But essentially the VEH Handlers we currently have are running too
early.
This was a problem as it ran so early it also swallowed C++ exceptions
and other software exceptions which the system could have very well
recovered from.
So instead we use a sequence of chains to for the exception handlers to
run as late as possible. You really can't get any later than this.
Please read the comment in the patch for more details.
I'm also providing a switch to allow people to turn off the exception
handling entirely. In case it does present a problem with their code.
Test Plan: ./validate
Reviewers: austin, hvr, bgamari, erikd, simonmar
Reviewed By: bgamari
Subscribers: rwbarton, thomie
GHC Trac Issues: #13911, #12110
Differential Revision: https://phabricator.haskell.org/D3911
Diffstat (limited to 'includes')
-rw-r--r-- | includes/rts/Flags.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/rts/Flags.h b/includes/rts/Flags.h index 6040201c73..e67f176560 100644 --- a/includes/rts/Flags.h +++ b/includes/rts/Flags.h @@ -189,6 +189,7 @@ typedef struct _CONCURRENT_FLAGS { typedef struct _MISC_FLAGS { Time tickInterval; /* units: TIME_RESOLUTION */ bool install_signal_handlers; + bool install_seh_handlers; bool machineReadable; StgWord linkerMemBase; /* address to ask the OS for memory * for the linker, NULL ==> off */ |