[tsan] Derive the unmangled SP in longjmp with xor key on loongarch64
authorzhanglimin <zhanglimin@loongson.cn>
Mon, 27 Mar 2023 12:27:21 +0000 (20:27 +0800)
committerwanglei <wanglei@loongson.cn>
Tue, 28 Mar 2023 08:22:49 +0000 (16:22 +0800)
commitcfdcdf05feb26418b3aef5df3ee94492da5eeacd
treedcfa5a2b065a777436246b8e52c270753b02e0f1
parent488185cca3871a0ef2ec3b9b4c642dc6db6eeea5
[tsan] Derive the unmangled SP in longjmp with xor key on loongarch64

Introducing xor key to derive unmangled sp is here to follow the way
that the glibc adds support for pointer mangling on loongarch in commit
1c9bc1b6e50293a1b7037a7bfbf835868a55baed.

Reviewed By: SixWeining, wangleiat, xen0n

Differential Revision: https://reviews.llvm.org/D146716
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp