]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
find_nsegment_idx: double size of the lookup cache in an attempt
authorJulian Seward <jseward@acm.org>
Tue, 7 Jun 2011 21:42:07 +0000 (21:42 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 7 Jun 2011 21:42:07 +0000 (21:42 +0000)
to mitigate the probable increase in miss rates resulting from
r11798 (which causes increased numbers of such queries).

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

coregrind/m_aspacemgr/aspacemgr-linux.c

index 9765ba8dd79ea2d3b123226ae1eb6d45bb007bfd..4d1094abee03ab80e6e0cfe8106f01ab5c14c357 100644 (file)
@@ -1146,7 +1146,7 @@ static Int find_nsegment_idx_WRK ( Addr a )
 
 inline static Int find_nsegment_idx ( Addr a )
 {
-#  define N_CACHE 63
+#  define N_CACHE 131 /*prime*/
    static Addr cache_pageno[N_CACHE];
    static Int  cache_segidx[N_CACHE];
    static Bool cache_inited = False;