diff options
author | Vladimir Marko <vmarko@google.com> | 2014-02-12 18:02:05 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2014-03-06 15:37:40 +0000 |
commit | 83cc7ae96d4176533dd0391a1591d321b0a87f4f (patch) | |
tree | 6b3c607119c1dc2850810f8463dfd968c486fba4 /compiler/utils/arena_bit_vector.h | |
parent | 8785d615122d4abbd22db702139584e8c472f502 (diff) | |
download | art-83cc7ae96d4176533dd0391a1591d321b0a87f4f.zip art-83cc7ae96d4176533dd0391a1591d321b0a87f4f.tar.gz art-83cc7ae96d4176533dd0391a1591d321b0a87f4f.tar.bz2 |
Create a scoped arena allocator and use that for LVN.
This saves more than 0.5s of boot.oat compilation time
on Nexus 5.
TODO: Move other stuff to the scoped allocator. This CL
alone increases the peak memory allocation. By reusing
the memory for other parts of the compilation we should
reduce this overhead.
Change-Id: Ifbc00aab4f3afd0000da818dfe68b96713824a08
Diffstat (limited to 'compiler/utils/arena_bit_vector.h')
-rw-r--r-- | compiler/utils/arena_bit_vector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/arena_bit_vector.h b/compiler/utils/arena_bit_vector.h index 6c14617..1a3d6a3 100644 --- a/compiler/utils/arena_bit_vector.h +++ b/compiler/utils/arena_bit_vector.h @@ -55,7 +55,7 @@ class ArenaBitVector : public BitVector { ~ArenaBitVector() {} static void* operator new(size_t size, ArenaAllocator* arena) { - return arena->Alloc(sizeof(ArenaBitVector), ArenaAllocator::kAllocGrowableBitMap); + return arena->Alloc(sizeof(ArenaBitVector), kArenaAllocGrowableBitMap); } static void operator delete(void* p) {} // Nop. |