From: Julian Seward Date: Thu, 19 Sep 2013 10:04:59 +0000 (+0000) Subject: Increase VG_N_SEGMENTS and VG_N_SEGNAMES by a factor of 6 on all X-Git-Tag: svn/VALGRIND_3_9_0~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba1687c934f0c220c16a58cc0bd4e9bd81e51f9e;p=thirdparty%2Fvalgrind.git Increase VG_N_SEGMENTS and VG_N_SEGNAMES by a factor of 6 on all non-{phone/tablet} platforms. Possibly fixes #164485. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13567 --- diff --git a/coregrind/m_aspacemgr/aspacemgr-linux.c b/coregrind/m_aspacemgr/aspacemgr-linux.c index 272f5be642..3d57de63d7 100644 --- a/coregrind/m_aspacemgr/aspacemgr-linux.c +++ b/coregrind/m_aspacemgr/aspacemgr-linux.c @@ -264,11 +264,22 @@ /* ------ 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