diff options
author | Jason Merrill <jason@redhat.com> | 2012-03-05 17:01:49 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-03-05 17:01:49 -0500 |
commit | 09a70a2c58ae453462e2792871dcd1907e3bd383 (patch) | |
tree | 743e03f7b5c3d8a3a5f1726fa17094f240f2c0d7 /gcc/objc | |
parent | c081413602d8a15b4e7c37ece6e757e33632e561 (diff) | |
download | gcc-09a70a2c58ae453462e2792871dcd1907e3bd383.tar.gz |
objc-map.c (objc_map_private_resize, [...]): Don't call _stat functions without MEM_STAT_INFO.
* objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't
call _stat functions without MEM_STAT_INFO.
From-SVN: r184961
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/objc-map.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 3c176e823b4..70912141660 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2012-03-05 Jason Merrill <jason@redhat.com> + + * objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't + call _stat functions without MEM_STAT_INFO. + 2011-11-12 Iain Sandoe <iains@gcc.gnu.org> * objc-next-runtime-abi-01.c (objc_eh_personality): Use gcc personality diff --git a/gcc/objc/objc-map.c b/gcc/objc/objc-map.c index 77a98c1d825..a4a1eecfde4 100644 --- a/gcc/objc/objc-map.c +++ b/gcc/objc/objc-map.c @@ -56,7 +56,7 @@ next_power_of_two (size_t x) objc_map_t objc_map_alloc_ggc (size_t initial_capacity) { - objc_map_t map = (objc_map_t) ggc_internal_cleared_vec_alloc_stat (1, sizeof (struct objc_map_private)); + objc_map_t map = (objc_map_t) ggc_internal_cleared_vec_alloc (1, sizeof (struct objc_map_private)); if (map == NULL) OUT_OF_MEMORY; @@ -67,8 +67,8 @@ objc_map_alloc_ggc (size_t initial_capacity) map->maximum_load_factor = 70; map->max_number_of_non_empty_slots = (initial_capacity * map->maximum_load_factor) / 100; - map->slots = (tree *)ggc_internal_cleared_vec_alloc_stat (initial_capacity, sizeof (tree)); - map->values = (tree *)ggc_internal_cleared_vec_alloc_stat (initial_capacity, sizeof (tree)); + map->slots = (tree *)ggc_internal_cleared_vec_alloc (initial_capacity, sizeof (tree)); + map->values = (tree *)ggc_internal_cleared_vec_alloc (initial_capacity, sizeof (tree)); if (map->slots == NULL) OUT_OF_MEMORY; @@ -112,8 +112,8 @@ objc_map_private_resize (objc_map_t map, size_t new_number_of_slots) map->max_number_of_non_empty_slots = (map->number_of_slots * map->maximum_load_factor) / 100; - map->slots = (tree *)ggc_internal_cleared_vec_alloc_stat (map->number_of_slots, sizeof (tree)); - map->values = (tree *)ggc_internal_cleared_vec_alloc_stat (map->number_of_slots, sizeof (tree)); + map->slots = (tree *)ggc_internal_cleared_vec_alloc (map->number_of_slots, sizeof (tree)); + map->values = (tree *)ggc_internal_cleared_vec_alloc (map->number_of_slots, sizeof (tree)); if (map->slots == NULL) OUT_OF_MEMORY; |