aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-set.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/hash-set.h')
-rw-r--r--gcc/hash-set.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/hash-set.h b/gcc/hash-set.h
index 9065451..b4db21a 100644
--- a/gcc/hash-set.h
+++ b/gcc/hash-set.h
@@ -33,7 +33,7 @@ struct default_hashset_traits
static hashval_t
hash (T *p)
{
- return uintptr_t(p) >> 3;
+ return uintptr_t (p) >> 3;
}
template<typename T> static hashval_t hash(const T &v) { return v; }
@@ -180,7 +180,8 @@ class hash_set
};
public:
- explicit hash_set (size_t n = 13, bool ggc = false) : m_table (n, ggc) {}
+ explicit hash_set (size_t n = 13, bool ggc = false CXX_MEM_STAT_INFO)
+ : m_table (n, ggc, true, HASH_SET PASS_MEM_STAT) {}
/* Create a hash_set in gc memory with space for at least n elements. */