Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
#endif | #endif | ||||
void InitializePlatformEarly() { | void InitializePlatformEarly() { | ||||
# if !SANITIZER_GO && SANITIZER_IOS | # if !SANITIZER_GO && SANITIZER_IOS | ||||
uptr max_vm = GetMaxUserVirtualAddress() + 1; | uptr max_vm = GetMaxUserVirtualAddress() + 1; | ||||
if (max_vm != HiAppMemEnd()) { | if (max_vm != HiAppMemEnd()) { | ||||
Printf("ThreadSanitizer: unsupported vm address limit %p, expected %p.\n", | Printf("ThreadSanitizer: unsupported vm address limit %p, expected %p.\n", | ||||
max_vm, HiAppMemEnd()); | (void *)max_vm, (void *)HiAppMemEnd()); | ||||
Die(); | Die(); | ||||
} | } | ||||
#endif | #endif | ||||
} | } | ||||
static uptr longjmp_xor_key = 0; | static uptr longjmp_xor_key = 0; | ||||
void InitializePlatform() { | void InitializePlatform() { | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |