]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Increase maximum usable memory amount from 32GB to 64GB on 64-bit Linux.
authorJulian Seward <jseward@acm.org>
Tue, 29 Jan 2013 21:14:46 +0000 (21:14 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 29 Jan 2013 21:14:46 +0000 (21:14 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13278

coregrind/m_aspacemgr/aspacemgr-linux.c
memcheck/mc_main.c

index fa9075bb5f68a7fc7c45ba0676291070125ff0b0..eddb4de7b1dd760bcb24a7f15eb4b9e039adf12d 100644 (file)
@@ -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)
index 3ee4abd9151ba8cc68e2647da45af8aff900e45e..1f6328b13af00057b4461f43aac11a825b634628 100644 (file)
@@ -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
 }