Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Unified Diff: scripts/limits.patch

Issue 1811004: Increase VG_N_SEGMENTS, VG_N_SEGNAMES and VG_N_THREADS and update the Linux V... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/valgrind/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/common.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/limits.patch
===================================================================
--- scripts/limits.patch (revision 0)
+++ scripts/limits.patch (revision 0)
@@ -0,0 +1,39 @@
+Index: include/pub_tool_threadstate.h
+===================================================================
+--- include/pub_tool_threadstate.h (revision 11055)
++++ include/pub_tool_threadstate.h (working copy)
+@@ -36,7 +36,11 @@
+ scheduler algorithms is surely O(N) in the number of threads, since
+ that's simple, at least. And (in practice) we hope that most
+ programs do not need many threads. */
++#if defined(VGO_darwin)
+ #define VG_N_THREADS 500
++#else
++#define VG_N_THREADS 10000
++#endif
+
+ /* Special magic value for an invalid ThreadId. It corresponds to
+ LinuxThreads using zero as the initial value for
+Index: coregrind/m_aspacemgr/aspacemgr-linux.c
+===================================================================
+--- coregrind/m_aspacemgr/aspacemgr-linux.c (revision 11055)
++++ coregrind/m_aspacemgr/aspacemgr-linux.c (working copy)
+@@ -265,10 +265,18 @@
+ /* ------ start of STATE for the address-space manager ------ */
+
+ /* Max number of segments we can track. */
++#if defined(VGO_darwin)
+ #define VG_N_SEGMENTS 5000
++#else
++#define VG_N_SEGMENTS 100000
++#endif
+
+ /* Max number of segment file names we can track. */
++#if defined(VGO_darwin)
+ #define VG_N_SEGNAMES 1000
++#else
++#define VG_N_SEGNAMES 100000
++#endif
+
+ /* Max length of a segment file name. */
+ #define VG_MAX_SEGNAMELEN 1000
« no previous file with comments | « scripts/common.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698