-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of hardware exceptions in native code on Unix (#69685)
This change fixes handling of hardware exceptions like sigsegv or division by zero that happen in native code out of our runtime helpers and that is enclosed in the PAL_TRY / PAL_EXCEPT or PAL_FINALLY. The current implementation was working only for the DAC code. There is a new need to use it in SuperPMI to ensure that a log is written even in case an access violation occured in JIT. It still requires the shared library that wants to use it to be compiled with FEATURE_ENABLE_HARDWARE_EXCEPTIONS, so nothing has changed for coreclr or JIT. It also requires the PAL of that shared library to be initialized with PAL_INITIALIZE_REGISTER_SIGNALS on Linux. On macOS, this is not needed.
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters