diff options
author | 2015-09-29 19:01:15 +0100 | |
---|---|---|
committer | 2015-09-29 19:46:03 +0100 | |
commit | 5233f93ee336b3581ccdb993ff6342c52fec34b0 (patch) | |
tree | 225dc0ab491263ef56362a8d0fe2926266bd5047 /compiler/optimizing/gvn.cc | |
parent | de8a3f4dce1e9ff0e3be16956b06bafc8cd4f397 (diff) |
Optimizing: Tag even more arena allocations.
Tag previously "Misc" arena allocations with more specific
allocation types. Move some native heap allocations to the
arena in BCE.
Bug: 23736311
Change-Id: If8ef15a8b614dc3314bdfb35caa23862c9d4d25c
Diffstat (limited to 'compiler/optimizing/gvn.cc')
-rw-r--r-- | compiler/optimizing/gvn.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/gvn.cc b/compiler/optimizing/gvn.cc index 5050e155f5..7cf061773f 100644 --- a/compiler/optimizing/gvn.cc +++ b/compiler/optimizing/gvn.cc @@ -39,7 +39,7 @@ class ValueSet : public ArenaObject<kArenaAllocGvn> { explicit ValueSet(ArenaAllocator* allocator) : allocator_(allocator), num_buckets_(kMinimumNumberOfBuckets), - buckets_(allocator->AllocArray<Node*>(num_buckets_)), + buckets_(allocator->AllocArray<Node*>(num_buckets_, kArenaAllocGvn)), buckets_owned_(allocator, num_buckets_, false), num_entries_(0) { // ArenaAllocator returns zeroed memory, so no need to set buckets to null. @@ -52,7 +52,7 @@ class ValueSet : public ArenaObject<kArenaAllocGvn> { ValueSet(ArenaAllocator* allocator, const ValueSet& to_copy) : allocator_(allocator), num_buckets_(to_copy.IdealBucketCount()), - buckets_(allocator->AllocArray<Node*>(num_buckets_)), + buckets_(allocator->AllocArray<Node*>(num_buckets_, kArenaAllocGvn)), buckets_owned_(allocator, num_buckets_, false), num_entries_(to_copy.num_entries_) { // ArenaAllocator returns zeroed memory, so entries of buckets_ and |