|
From: <sv...@va...> - 2011-06-07 21:46:58
|
Author: sewardj
Date: 2011-06-07 22:42:07 +0100 (Tue, 07 Jun 2011)
New Revision: 11799
Log:
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).
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
Modified: trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
===================================================================
--- trunk/coregrind/m_aspacemgr/aspacemgr-linux.c 2011-06-07 21:39:28 UTC (rev 11798)
+++ trunk/coregrind/m_aspacemgr/aspacemgr-linux.c 2011-06-07 21:42:07 UTC (rev 11799)
@@ -1146,7 +1146,7 @@
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;
|