summaryrefslogtreecommitdiff
path: root/gcc/objc/objc-map.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-05 22:01:49 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-05 22:01:49 +0000
commit35efe5bd304397bcffbc2e95c6fffeff120cc282 (patch)
tree743e03f7b5c3d8a3a5f1726fa17094f240f2c0d7 /gcc/objc/objc-map.c
parent549aab72b1897b579be5f894a4fdc26083590cf7 (diff)
downloadgcc-35efe5bd304397bcffbc2e95c6fffeff120cc282.tar.gz
* objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't
call _stat functions without MEM_STAT_INFO. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc/objc-map.c')
-rw-r--r--gcc/objc/objc-map.c10
1 files changed, 5 insertions, 5 deletions
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;