aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-10-19 17:40:00 +0200
committerMartin Liska <mliska@suse.cz>2020-10-27 11:49:54 +0100
commit14e19b82c1e67ead60c3095ac23347317298904b (patch)
treefde313742d6dd32a455e4246f7d5535178d5e30c /gcc/gcov-io.h
parent21508c47f9a51f5b7dce35baee08fe95053ea85b (diff)
downloadgcc-14e19b82c1e67ead60c3095ac23347317298904b.zip
gcc-14e19b82c1e67ead60c3095ac23347317298904b.tar.gz
gcc-14e19b82c1e67ead60c3095ac23347317298904b.tar.bz2
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.
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r--gcc/gcov-io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h
index 4dba01c..4e95c7c 100644
--- a/gcc/gcov-io.h
+++ b/gcc/gcov-io.h
@@ -293,7 +293,7 @@ GCOV_COUNTERS
#define GCOV_TOPN_MAXIMUM_TRACKED_VALUES 32
/* Number of pre-allocated gcov_kvp structures. */
-#define GCOV_PREALLOCATED_KVP 16
+#define GCOV_PREALLOCATED_KVP 64
/* Convert a counter index to a tag. */
#define GCOV_TAG_FOR_COUNTER(COUNT) \