[compiler-rt] [tsan][riscv] add Go race detector support for RISC-V sv39 VMA (PR #154701)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 09:54:26 PDT 2025


================
@@ -681,6 +681,33 @@ struct MappingGoMips64_47 {
   static const uptr kShadowAdd = 0x200000000000ull;
 };
 
+/* Go on linux/riscv64 (39-bit VMA)
+0000 0000 0000 - 000a 0000 0000: executable and heap (40 GiB)
+000a 0000 0000 - 000c 0000 0000: -
+000c 0000 0000 - 0034 0000 0000: shadow - 160 GiB ( ~ 4 * app)
+0034 0000 0000 - 0035 0000 0000: -
+0035 0000 0000 - 0039 0000 0000: metainfo - 40 GiB ( ~ 1 * app)
----------------
thurstond wrote:

This region is only 16GiB, which is too small - it needs to be 20GiB (0.5 * app).

https://github.com/llvm/llvm-project/pull/154701


More information about the llvm-commits mailing list