]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Double the size of the (already huge) translation cache on all
authorJulian Seward <jseward@acm.org>
Thu, 19 Sep 2013 10:15:22 +0000 (10:15 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 19 Sep 2013 10:15:22 +0000 (10:15 +0000)
non-phone/tablet targets.  The previous apparently-huge sizing is
evidently not huge enough for recent apps, eg, recent Firefox requires
circa 350k translations to get started and almost fills an 8-sector
cache merely starting up and then idling.

On Android targets, fall back to 6 sectors; space is critical.

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

coregrind/m_transtab.c

index 566847ce89a74d8b981918c0983107b8a3096023..c27f7b7a47508dc1215c46025eb01cb9e2199a4d 100644 (file)
 /*------------------ CONSTANTS ------------------*/
 
 /* Number of sectors the TC is divided into.  If you need a larger
-   overall translation cache, increase this value. */
-#define N_SECTORS 8
+   overall translation cache, increase this value.  On Android, space
+   is limited, so try to get by with fewer sectors.  On other
+   platforms we can go to town.  16 sectors gives theoretical capacity
+   of about 440MB of JITted code in 1.05 million translations
+   (realistically, about 2/3 of that) for Memcheck. */
+#if defined(VGPV_arm_linux_android) || defined(VGPV_x86_linux_android)
+# define N_SECTORS 6
+#else
+# define N_SECTORS 16
+#endif
 
 /* Number of TC entries in each sector.  This needs to be a prime
    number to work properly, it must be <= 65535 (so that a TT index