[compiler-rt] 5886a27 - [tsan][riscv] correct Go race detector mapping for RISC-V sv48 VMA (#154700)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 25 11:16:25 PDT 2025


Author: Joel Sing
Date: 2025-08-25T11:16:21-07:00
New Revision: 5886a276ed24c2cd936e602441365bb0bbe5ef40

URL: https://github.com/llvm/llvm-project/commit/5886a276ed24c2cd936e602441365bb0bbe5ef40
DIFF: https://github.com/llvm/llvm-project/commit/5886a276ed24c2cd936e602441365bb0bbe5ef40.diff

LOG: [tsan][riscv] correct Go race detector mapping for RISC-V sv48 VMA (#154700)

The executable and heap range for RISC-V sv48 VMA is supposed to end at
0xe000000000, rather than 0x0e00000000 as currently configured.

Added: 
    

Modified: 
    compiler-rt/lib/tsan/rtl/tsan_platform.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h
index 6c14537d25ae6..00b493bf2d931 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h
@@ -721,7 +721,7 @@ struct MappingGoRiscv64_48 {
   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