diff options
author | Jan Hubicka <jh@suse.cz> | 2019-11-06 20:36:22 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-11-06 19:36:22 +0000 |
commit | 5d24b4f2dad8883db004481ebd633a0bf8d4f8e9 (patch) | |
tree | 26254a0b9d22d2713949b92f16cd72737ebc5f0e /gcc/mem-stats.h | |
parent | 0c92c8627c1cbf7cbc76d065514a564dc8f044c0 (diff) | |
download | gcc-5d24b4f2dad8883db004481ebd633a0bf8d4f8e9.zip gcc-5d24b4f2dad8883db004481ebd633a0bf8d4f8e9.tar.gz gcc-5d24b4f2dad8883db004481ebd633a0bf8d4f8e9.tar.bz2 |
ggc-common.c (ggc_prune_overhead_list): Do not delete surviving allocations.
* ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
allocations.
* mem-stats.h (mem_alloc_description<T>::release_object_overhead):
Do not silently ignore summary corruptions.
From-SVN: r277890
Diffstat (limited to 'gcc/mem-stats.h')
-rw-r--r-- | gcc/mem-stats.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/mem-stats.h b/gcc/mem-stats.h index c2329c2..c80be76 100644 --- a/gcc/mem-stats.h +++ b/gcc/mem-stats.h @@ -535,11 +535,8 @@ inline void mem_alloc_description<T>::release_object_overhead (void *ptr) { std::pair <T *, size_t> *entry = m_reverse_object_map->get (ptr); - if (entry) - { - entry->first->release_overhead (entry->second); - m_reverse_object_map->remove (ptr); - } + entry->first->release_overhead (entry->second); + m_reverse_object_map->remove (ptr); } /* Unregister a memory allocation descriptor registered with |