Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

swift-4.2.2-RELEASE: [tsan] Adjust setjmp/longjmp handling on Darwin for macOS Mojave

Latest
Compare
Choose a tag to compare
@shahmishal shahmishal released this 05 Feb 01:45
· 3268 commits to stable since this release
On macOS Mojave, the OS started using the XOR-by-a-secret-key scheme (same as glibc is alread doing) for storing the SP value in setjmp environment. We need to adjust for that to keep supporting setjmp/longjmp on latest Darwin. The patch is basically doing the same what we're already doing for glibc.

rdar://problem/43542596

Differential Revision: https://reviews.llvm.org/D51064



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@340350 91177308-0d34-0410-b5e6-96231b3b80d8