]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Only collect stacktraces at scalar Kr boundaries at history level 1.
authorJulian Seward <jseward@acm.org>
Sun, 26 Jul 2009 19:50:06 +0000 (19:50 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 26 Jul 2009 19:50:06 +0000 (19:50 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10621

helgrind/libhb_core.c

index b509401999921c112defa2f39195390c6a48d9ae..58b5c6a3e9039c2e128fd76e8c15f571af1b427b 100644 (file)
@@ -2885,6 +2885,11 @@ static void note_local_Kr_n_stack_for ( Thr* thr )
    Word       nPresent;
    ULong_n_EC pair;
    tl_assert(thr);
+
+   // We only collect this info at history level 1 (approx)
+   if (HG_(clo_history_level) != 1) 
+      return;
+
    /* This is the scalar Kr for thr. */
    pair.ull = VtsID__indexAt( thr->viR, thr );
    pair.ec  = main_get_EC( thr );