Index: lib/tsan/rtl/tsan_platform_mac.cc =================================================================== --- lib/tsan/rtl/tsan_platform_mac.cc +++ 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) { + CHECK(0 && "vm address limit too high"); + } else if (max_vm < kHiAppMemEnd) { + CHECK(0 && "vm address limit too low"); + } +#endif } void InitializePlatform() {