[compiler-rt] [tsan] Add 47-bit VMA mapping for linux/aarch64 (PR #205949)
Fei Peng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 17:49:03 PDT 2026
================
@@ -214,6 +214,37 @@ struct MappingAarch64_42 {
static const uptr kVdsoBeg = 0x37f00000000ull;
};
+/*
+C/C++ on linux/aarch64 (47-bit VMA)
+0000 0000 1000 - 0400 0000 0000: main binary (4096 GB)
+0400 0000 0000 - 0aaa 0000 0000: -
+0aaa 0000 0000 - 2800 0000 0000: shadow memory (30040 GB)
+2800 0000 0000 - 4000 0000 0000: -
+4000 0000 0000 - 5000 0000 0000: metainfo (16384 GB)
+5000 0000 0000 - 5555 0000 0000: -
+5555 0000 0000 - 5600 0000 0000: main binary (PIE) (684 GB)
+5600 0000 0000 - 7c00 0000 0000: -
+7c00 0000 0000 - 7fff ffff ffff: modules and main thread stack (4096 GB)
+*/
+struct MappingAarch64_47 {
+ static const uptr kLoAppMemBeg = 0x0000000001000ull;
+ static const uptr kLoAppMemEnd = 0x0040000000000ull;
+ static const uptr kShadowBeg = 0x00aaa00000000ull;
+ static const uptr kShadowEnd = 0x0280000000000ull;
+ static const uptr kMetaShadowBeg = 0x0400000000000ull;
+ static const uptr kMetaShadowEnd = 0x0500000000000ull;
+ static const uptr kMidAppMemBeg = 0x0555500000000ull;
+ static const uptr kMidAppMemEnd = 0x0560000000000ull;
+ static const uptr kHiAppMemBeg = 0x07c0000000000ull;
+ static const uptr kHiAppMemEnd = 0x0800000000000ull;
+ static const uptr kHeapMemBeg = 0x07c0000000000ull;
+ static const uptr kHeapMemEnd = 0x07c0000000000ull;
----------------
airpfei wrote:
Thanks for the review. I expanded MidApp region.
If there are no further concerns, could you land this for me?
https://github.com/llvm/llvm-project/pull/205949
More information about the llvm-commits
mailing list