From: Julian Seward Date: Tue, 29 Jan 2013 21:14:46 +0000 (+0000) Subject: Increase maximum usable memory amount from 32GB to 64GB on 64-bit Linux. X-Git-Tag: svn/VALGRIND_3_9_0~403 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbf3bf279d2b1e428b4c6c44307cac01c0df0d33;p=thirdparty%2Fvalgrind.git Increase maximum usable memory amount from 32GB to 64GB on 64-bit Linux. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13278 --- diff --git a/coregrind/m_aspacemgr/aspacemgr-linux.c b/coregrind/m_aspacemgr/aspacemgr-linux.c index fa9075bb5f..eddb4de7b1 100644 --- a/coregrind/m_aspacemgr/aspacemgr-linux.c +++ b/coregrind/m_aspacemgr/aspacemgr-linux.c @@ -1649,7 +1649,7 @@ Addr VG_(am_startup) ( Addr sp_at_startup ) aspacem_minAddr = (Addr) 0x04000000; // 64M # if VG_WORDSIZE == 8 - aspacem_maxAddr = (Addr)0x800000000 - 1; // 32G + aspacem_maxAddr = (Addr)0x1000000000ULL - 1; // 64G # ifdef ENABLE_INNER { Addr cse = VG_PGROUNDDN( sp_at_startup ) - 1; if (aspacem_maxAddr > cse) diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index 3ee4abd915..1f6328b13a 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -167,10 +167,10 @@ static void ocache_sarp_Clear_Origins ( Addr, UWord ); /* fwds */ #else -/* Just handle the first 32G fast and the rest via auxiliary +/* Just handle the first 64G fast and the rest via auxiliary primaries. If you change this, Memcheck will assert at startup. See the definition of UNALIGNED_OR_HIGH for extensive comments. */ -# define N_PRIMARY_BITS 19 +# define N_PRIMARY_BITS 20 #endif @@ -6554,11 +6554,11 @@ static void mc_pre_clo_init(void) tl_assert(sizeof(Addr) == 8); tl_assert(sizeof(UWord) == 8); tl_assert(sizeof(Word) == 8); - tl_assert(MAX_PRIMARY_ADDRESS == 0x7FFFFFFFFULL); - tl_assert(MASK(1) == 0xFFFFFFF800000000ULL); - tl_assert(MASK(2) == 0xFFFFFFF800000001ULL); - tl_assert(MASK(4) == 0xFFFFFFF800000003ULL); - tl_assert(MASK(8) == 0xFFFFFFF800000007ULL); + tl_assert(MAX_PRIMARY_ADDRESS == 0xFFFFFFFFFULL); + tl_assert(MASK(1) == 0xFFFFFFF000000000ULL); + tl_assert(MASK(2) == 0xFFFFFFF000000001ULL); + tl_assert(MASK(4) == 0xFFFFFFF000000003ULL); + tl_assert(MASK(8) == 0xFFFFFFF000000007ULL); # endif }