http://code.google.com/p/valgrind-variant/source/detail?r=122
Modified:
/trunk/valgrind/coregrind/m_aspacemgr/aspacemgr-linux.c
=======================================
--- /trunk/valgrind/coregrind/m_aspacemgr/aspacemgr-linux.c Tue Oct 25
09:11:36 2011
+++ /trunk/valgrind/coregrind/m_aspacemgr/aspacemgr-linux.c Tue Nov 8
06:27:00 2011
@@ -265,8 +265,14 @@
/* ------ start of STATE for the address-space manager ------ */
/* Max number of segments we can track. */
-#if defined(VGO_darwin) || defined(ANDROID)
-#define VG_N_SEGMENTS 5000
+/* glider: We keep VG_N_SEGMENTS low on Android, because they occupy
+ too much memory. We used to have VG_N_SEGMENTS=10000 on Darwin,
+ but it turned out to be too low for Chromium.
+*/
+#if defined(VGO_darwin)
+#define VG_N_SEGMENTS 50000
+#elif defined(ANDROID)
+#define VG_N_SEGMENTS 10000
#else
#define VG_N_SEGMENTS 100000
#endif