[PATCH] D35154: [tsan] Add a max VM address check for Darwin/AArch64
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 08:25:16 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL307540: [tsan] Add a max VM address check for Darwin/AArch64 (authored by kuba.brecka).
Changed prior to commit:
https://reviews.llvm.org/D35154?vs=105709&id=105854#toc
Repository:
rL LLVM
https://reviews.llvm.org/D35154
Files:
compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc
Index: compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc
@@ -230,6 +230,14 @@
#endif
void InitializePlatformEarly() {
+#if defined(__aarch64__)
+ uptr max_vm = GetMaxVirtualAddress() + 1;
+ if (max_vm != kHiAppMemEnd) {
+ Printf("ThreadSanitizer: unsupported vm address limit %p, expected %p.\n",
+ max_vm, kHiAppMemEnd);
+ Die();
+ }
+#endif
}
void InitializePlatform() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35154.105854.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170710/30926539/attachment.bin>
More information about the llvm-commits
mailing list