diff options
author | Michael Matz <matz@suse.de> | 2015-12-11 11:29:02 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2015-12-11 11:29:02 +0000 |
commit | f5c08287e25d8b02d0e9574960ce21c6ea13bee9 (patch) | |
tree | 6494a37e078dcac788db1733c9b0719609c80104 /gcc/hash-table.h | |
parent | 9e64af18754df7b9360cb9b693111caf0df8e7a2 (diff) | |
download | gcc-f5c08287e25d8b02d0e9574960ce21c6ea13bee9.zip gcc-f5c08287e25d8b02d0e9574960ce21c6ea13bee9.tar.gz gcc-f5c08287e25d8b02d0e9574960ce21c6ea13bee9.tar.bz2 |
hash-map.h (hash_map::hash_map): Gather statistics only when GATHER_STATISTICS is true.
* hash-map.h (hash_map::hash_map): Gather statistics only
when GATHER_STATISTICS is true.
* hash-set.h (hash_set::hash_set): Ditto.
* hash-table.h (hash_table::hash_table): Ditto.
(hash_table::create_ggc): Ditto.
From-SVN: r231560
Diffstat (limited to 'gcc/hash-table.h')
-rw-r--r-- | gcc/hash-table.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/hash-table.h b/gcc/hash-table.h index 192be30..8559830 100644 --- a/gcc/hash-table.h +++ b/gcc/hash-table.h @@ -361,7 +361,8 @@ class hash_table typedef typename Descriptor::compare_type compare_type; public: - explicit hash_table (size_t, bool ggc = false, bool gather_mem_stats = true, + explicit hash_table (size_t, bool ggc = false, + bool gather_mem_stats = GATHER_STATISTICS, mem_alloc_origin origin = HASH_TABLE_ORIGIN CXX_MEM_STAT_INFO); ~hash_table (); @@ -371,7 +372,8 @@ public: create_ggc (size_t n CXX_MEM_STAT_INFO) { hash_table *table = ggc_alloc<hash_table> (); - new (table) hash_table (n, true, true, HASH_TABLE_ORIGIN PASS_MEM_STAT); + new (table) hash_table (n, true, GATHER_STATISTICS, + HASH_TABLE_ORIGIN PASS_MEM_STAT); return table; } |