[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 27 10:50:27 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:14e19b82c1e67ead60c3095ac23347317298904b

commit r11-4423-g14e19b82c1e67ead60c3095ac23347317298904b
Author: Martin Liska <mliska@suse.cz>
Date:   Mon Oct 19 17:40:00 2020 +0200

    gcov-profile: use static pool for TOPN first

    gcc/ChangeLog:

            PR gcov-profile/97461
            * gcov-io.h (GCOV_PREALLOCATED_KVP): Pre-allocate 64
            static counters.

    libgcc/ChangeLog:

            PR gcov-profile/97461
            * libgcov.h (gcov_counter_add): Use first static counters
            as it should help to have malloc wrappers set up.

    gcc/testsuite/ChangeLog:

            PR gcov-profile/97461
            * gcc.dg/tree-prof/pr97461.c: New test.


More information about the Gcc-bugs mailing list