Skip to content

Commit 5af991d

Browse files
committed
[tsan] Fix aarch64-*-linux after D86377
All check-tsan tests fail on aarch64-*-linux because HeapMemEnd() > ShadowBeg() for the following code path: ``` #if defined(__aarch64__) && !HAS_48_BIT_ADDRESS_SPACE ProtectRange(HeapMemEnd(), ShadowBeg()); ``` Restore the behavior before D86377 for aarch64-*-linux.
1 parent baf637d commit 5af991d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void CheckAndProtect() {
9999
Die();
100100
}
101101

102-
#if defined(__aarch64__) && !HAS_48_BIT_ADDRESS_SPACE
102+
#if defined(__aarch64__) && defined(__APPLE__) && !HAS_48_BIT_ADDRESS_SPACE
103103
ProtectRange(HeapMemEnd(), ShadowBeg());
104104
ProtectRange(ShadowEnd(), MetaShadowBeg());
105105
ProtectRange(MetaShadowEnd(), TraceMemBeg());

0 commit comments

Comments
 (0)