]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Scalability fix for Helgrind: reduce the size of ScalarTS (scalar
authorJulian Seward <jseward@acm.org>
Thu, 24 Feb 2011 15:25:24 +0000 (15:25 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 24 Feb 2011 15:25:24 +0000 (15:25 +0000)
commit1f5db4cb20e1260dccbfe47b674816f050b9c226
tree03075ba405529225b1b36f4fe873575668391106
parenta18fd89fb7e80669505846acf65134be7aaa94b0
Scalability fix for Helgrind: reduce the size of ScalarTS (scalar
timestamps) from 16 to 8 bytes.  This halves the size of vector
timestamps and reduces the amount of memory needed to run programs
that have many threads and/or many synchronisation events.

The tradeoff is that Helgrind must abort the run if the program
creates more than 2^20 (1.0e+6) threads or performs more than 2^44
(1.76e+13) synchronisation events.  Neither of these seem like a
significant limitation in practice.  It's easy to argue that a limit
of 2^44 synch events would take at a minimum, several CPU months on a
very fast machine.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11570
helgrind/hg_lock_n_thread.h
helgrind/libhb_core.c