]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Increase VG_N_SEGMENTS and VG_N_SEGNAMES by a factor of 6 on all
authorJulian Seward <jseward@acm.org>
Thu, 19 Sep 2013 10:04:59 +0000 (10:04 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 19 Sep 2013 10:04:59 +0000 (10:04 +0000)
non-{phone/tablet} platforms.  Possibly fixes #164485.

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

coregrind/m_aspacemgr/aspacemgr-linux.c

index 272f5be642ec7d84e0259ad5a62ef606d2268a70..3d57de63d713d0bc8a9f3e36261b7db38f6c83ae 100644 (file)
 
 /* ------ start of STATE for the address-space manager ------ */
 
-/* Max number of segments we can track. */
-#define VG_N_SEGMENTS 5000
+/* Max number of segments we can track.  On Android, virtual address
+   space is limited, so keep a low limit -- 5000 x sizef(NSegment) is
+   360KB. */
+#if defined(VGPV_arm_linux_android) || defined(VGPV_x86_linux_android)
+# define VG_N_SEGMENTS 5000
+#else
+# define VG_N_SEGMENTS 30000
+#endif
 
-/* Max number of segment file names we can track. */
-#define VG_N_SEGNAMES 1000
+/* Max number of segment file names we can track.  These are big (1002
+   bytes) so on Android limit the space usage to ~1MB. */
+#if defined(VGPV_arm_linux_android) || defined(VGPV_x86_linux_android)
+# define VG_N_SEGNAMES 1000
+#else
+# define VG_N_SEGNAMES 6000
+#endif
 
 /* Max length of a segment file name. */
 #define VG_MAX_SEGNAMELEN 1000