Revision c093f926a38ce46ff85714a60e2178d7aac8e0b6 authored by Jameson Nash on 05 November 2022, 04:45:23 UTC, committed by GitHub on 05 November 2022, 04:45:23 UTC
Before turning a signal into a Julia exception, we would like to be
fairly certain it is not:
 - caused by the GC (and going to hang the system waiting to finish)
 - occurring during GC (and going to corrupt the mark bits)
 - occurring on a "foreign" thread (and lacking an exception handler
   and/or ptls object)
 - actually an alignment fault
 - send by the user with `kill`
 - the page actually is non-existant

The `msync` code calls can be directly checked instead by making sure
the `code[0]` is not KERN_INVALID_ADDRESS, which answers the same
question for us. Equivalent to how the check is done on other unix:
`sig == SIGSEGV && info->si_code == SEGV_ACCERR`
1 parent b1c67ea
History
File Mode Size
.devcontainer
.github
base
cli
contrib
deps
doc
etc
src
stdlib
test
.buildkite-external-version -rw-r--r-- 5 bytes
.clang-format -rw-r--r-- 3.3 KB
.codecov.yml -rw-r--r-- 52 bytes
.git-blame-ignore-revs -rw-r--r-- 294 bytes
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 493 bytes
.mailmap -rw-r--r-- 12.1 KB
CITATION.bib -rw-r--r-- 513 bytes
CITATION.cff -rw-r--r-- 940 bytes
CONTRIBUTING.md -rw-r--r-- 23.3 KB
HISTORY.md -rw-r--r-- 349.9 KB
LICENSE.md -rw-r--r-- 1.3 KB
Make.inc -rw-r--r-- 50.4 KB
Makefile -rw-r--r-- 27.5 KB
NEWS.md -rw-r--r-- 8.9 KB
README.md -rw-r--r-- 7.3 KB
THIRDPARTY.md -rw-r--r-- 3.7 KB
VERSION -rw-r--r-- 10 bytes
julia.spdx.json -rw-r--r-- 35.8 KB
sysimage.mk -rw-r--r-- 4.1 KB

README.md

back to top