]> git.ipfire.org Git - thirdparty/valgrind.git/commit
A scalability fix for Helgrind for running large workloads. When
authorJulian Seward <jseward@acm.org>
Wed, 23 Feb 2011 13:30:53 +0000 (13:30 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 23 Feb 2011 13:30:53 +0000 (13:30 +0000)
commita18fd89fb7e80669505846acf65134be7aaa94b0
tree1bf3c562b9cc8328463a0e3589f4ca7c2ebbc754
parent0c2371837b4837ae8289f7ff91b607880690d59b
A scalability fix for Helgrind for running large workloads.  When
creating new vector timestamps (VTSs) via tick and join operations,
preallocate the underlying XArray of ScalarTSs (scalar timestamps) at
the likely final size, using new function VG_(newSizedXA) introduced
in r11558.  This reduces overall heap turnover (in VG_AR_TOOL) by a
factor of several.  Together with revs 11567 and 11568, it mitigates
the worst-case performance falloff in long runs that involve lots of
threads and lots of synchronisation events (a.k.a Vector timestamps).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11569
helgrind/libhb_core.c