https://bugs.kde.org/show_bug.cgi?id=366817

            Bug ID: 366817
           Summary: VALGRIND_MEMPOOL_CHANGE has a performance bug
           Product: valgrind
           Version: unspecified
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: jsew...@acm.org
          Reporter: kde-...@askgustav.com

Using VALGRIND_MEMPOOL_CHANGE is prohibitively slow as it (twice) calls
check_mempool_sane().

Looking at r15577 of memcheck/mc_malloc_wrappers.c, I suggest adding "if
(MP_DETAILED_SANITY_CHECKS" before the two calls to check_mempool_sane() in
MC_(mempool_change).

This speeds up my application by more than a factor of 10 or so…

There are more unconditional calls to check_mempool_sane() in that file; maybe
some of them should be reconsidered as well?

Reproducible: Always

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to