[valgrind-variant] r122 committed - Increase VG_N_SEGMENTS on Mac.

5 views
Skip to first unread message

valgrind...@googlecode.com

unread,
Nov 8, 2011, 9:28:00 AM11/8/11
to valgrind-var...@googlegroups.com
Revision: 122
Author: gli...@google.com
Date: Tue Nov 8 06:27:00 2011
Log: Increase VG_N_SEGMENTS on Mac.

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

Reply all
Reply to author
Forward
0 new messages