diff options
author | Martin Liska <mliska@suse.cz> | 2021-01-13 11:17:03 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-03-03 14:21:45 +0100 |
commit | 00d79dc4be0b86ec564cfa2b32c47de6c07449e6 (patch) | |
tree | e8a0decbad8ba16951cd9f0861e09b67063d8f1c /gcc/gcov-io.h | |
parent | 8cfa06570dd5eae2f074e1a1388004a60edfd01f (diff) | |
download | gcc-00d79dc4be0b86ec564cfa2b32c47de6c07449e6.zip gcc-00d79dc4be0b86ec564cfa2b32c47de6c07449e6.tar.gz gcc-00d79dc4be0b86ec564cfa2b32c47de6c07449e6.tar.bz2 |
gcov: use mmap pools for KVP.
gcc/ChangeLog:
PR gcov-profile/97461
* gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
libgcc/ChangeLog:
PR gcov-profile/97461
* config.in: Regenerate.
* configure: Likewise.
* configure.ac: Check sys/mman.h header file
* libgcov-driver.c (struct gcov_kvp): Remove static
pre-allocated pool and use a dynamic one.
* libgcov.h (MMAP_CHUNK_SIZE): New.
(gcov_counter_add): Use mmap to allocate pool for struct
gcov_kvp.
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r-- | gcc/gcov-io.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index baed676..75f16a2 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -292,9 +292,6 @@ GCOV_COUNTERS /* Maximum number of tracked TOP N value profiles. */ #define GCOV_TOPN_MAXIMUM_TRACKED_VALUES 32 -/* Number of pre-allocated gcov_kvp structures. */ -#define GCOV_PREALLOCATED_KVP 64 - /* Convert a counter index to a tag. */ #define GCOV_TAG_FOR_COUNTER(COUNT) \ (GCOV_TAG_COUNTER_BASE + ((gcov_unsigned_t)(COUNT) << 17)) |