]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Increase some sizes to deal better with the new multigigabyte world:
authorJulian Seward <jseward@acm.org>
Wed, 28 Sep 2005 11:50:20 +0000 (11:50 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 28 Sep 2005 11:50:20 +0000 (11:50 +0000)
- on 64-bit platforms, double the size of the supported address
  space to 32G.

- Increase the size of the ExeContext table 6 times.  Some very
  large apps have been observed to have been doing a lot of
  searching in the old 4999 entry table.  This table may be
  OSetified in the fullness of time.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4808

coregrind/m_aspacemgr/aspacemgr.c
coregrind/m_execontext.c
coregrind/m_transtab.c
memcheck/mc_main.c

index c9da7ac754b6870803b6988944ae4eb4d0dff0e0..e617d6dd4d48ada083816d93f06e6a9137e13cf2 100644 (file)
@@ -1465,13 +1465,13 @@ Addr VG_(am_startup) ( Addr sp_at_startup )
       accordingly. */
 
    VG_(debugLog)(2, "aspacem", 
-                    "        sp_at_startup = 0x%llx (supplied)\n", 
+                    "        sp_at_startup = 0x%010llx (supplied)\n", 
                     (ULong)sp_at_startup );
 
    aspacem_minAddr = (Addr) 0x04000000; // 64M
 
 #  if VG_WORDSIZE == 8
-   aspacem_maxAddr = (Addr)0x400000000 - 1; // 16G
+   aspacem_maxAddr = (Addr)0x800000000 - 1; // 32G
 #  else
    aspacem_maxAddr = VG_PGROUNDDN( sp_at_startup ) - 1;
 #  endif
index c4b6f6e4e66c4ed9c18583dd9cb4e7870f8d0f66..dcaa097e9539615aa13fcd929bf9ea5d0e72befc 100644 (file)
@@ -55,7 +55,7 @@ struct _ExeContext {
 
 /* Number of lists in which we keep track of ExeContexts.  Should be
    prime. */
-#define N_EC_LISTS 4999 /* a prime number */
+#define N_EC_LISTS 30011 /*4999*/ /* a prime number */
 
 /* The idea is only to ever store any one context once, so as to save
    space and make exact comparisons faster. */
index 459f8e617c7e4a858f0ed8ddbe2e900de06686ba..4362edd7cf222df9f684c657054436be623d1ec4 100644 (file)
 /* Number of TC entries in each sector.  This needs to be a prime
    number to work properly, and it is strongly recommended not to
    change this. */
-#define N_TTES_PER_SECTOR /*30011*/ 40009
+#define N_TTES_PER_SECTOR /*30011*/ /*40009*/ 80021
 
 /* Because each sector contains a hash table of TTEntries, we need to
    specify the maximum allowable loading, after which the sector is
    deemed full. */
-#define SECTOR_TT_LIMIT_PERCENT 60
+#define SECTOR_TT_LIMIT_PERCENT 66
 
 /* The sector is deemed full when this many entries are in it. */
 #define N_TTES_PER_SECTOR_USABLE \
index 1e3ad2509028639bf3307be162d79006a4061dd1..78b3e4bb8aa89b2ab9eb7591155f44f6454f79a5 100644 (file)
 
 #else
 
-/* Just handle the first 16G fast and the rest via auxiliary
+/* Just handle the first 32G fast and the rest via auxiliary
    primaries. */
-#  define N_PRIMARY_BITS  18
+#  define N_PRIMARY_BITS  19
 
 #endif