From: Julian Seward Date: Tue, 7 Jun 2011 21:42:07 +0000 (+0000) Subject: find_nsegment_idx: double size of the lookup cache in an attempt X-Git-Tag: svn/VALGRIND_3_7_0~438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d56e0ef2bfd32fa923ab08bb39f08fb8ed06358;p=thirdparty%2Fvalgrind.git find_nsegment_idx: double size of the lookup cache in an attempt 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 --- diff --git a/coregrind/m_aspacemgr/aspacemgr-linux.c b/coregrind/m_aspacemgr/aspacemgr-linux.c index 9765ba8dd7..4d1094abee 100644 --- a/coregrind/m_aspacemgr/aspacemgr-linux.c +++ b/coregrind/m_aspacemgr/aspacemgr-linux.c @@ -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;