[compiler-rt] [tsan][riscv] correct Go race detector mapping for RISC-V sv48 VMA (PR #154700)
Joel Sing via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 21 01:59:39 PDT 2025
https://github.com/4a6f656c created https://github.com/llvm/llvm-project/pull/154700
The executable and heap range for RISC-V sv48 VMA is supposed to end at
0xe000000000, rather than 0x0e00000000 as currently configured.
>From 263b70f74ee3a051d4d8dedd88cb6f399e83747e Mon Sep 17 00:00:00 2001
From: Joel Sing <joel at sing.id.au>
Date: Thu, 21 Aug 2025 18:50:19 +1000
Subject: [PATCH] [tsan][riscv] correct Go race detector mapping for RISC-V
sv48 VMA
The executable and heap range for RISC-V sv48 VMA is supposed to end
at 0xe000000000, rather than 0x0e00000000 as currently configured.
---
compiler-rt/lib/tsan/rtl/tsan_platform.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h
index ada594bc11fc7..66469afbc51bb 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h
@@ -695,7 +695,7 @@ struct MappingGoRiscv64 {
static const uptr kShadowBeg = 0x200000000000ull;
static const uptr kShadowEnd = 0x240000000000ull;
static const uptr kLoAppMemBeg = 0x000000010000ull;
- static const uptr kLoAppMemEnd = 0x000e00000000ull;
+ static const uptr kLoAppMemEnd = 0x00e000000000ull;
static const uptr kMidAppMemBeg = 0;
static const uptr kMidAppMemEnd = 0;
static const uptr kHiAppMemBeg = 0;
More information about the llvm-commits
mailing list