From b19955d3c8fbd9588f7e17299e559d02938154b6 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 29 Jul 2014 12:04:10 +0100 Subject: Reduce time and memory usage of GVN. Filter out dead sregs in GVN. Reclaim memory after each LVN in the GVN modification phase. Bug: 16398693 Change-Id: I8c88c3009663754e1b66c0ef3f62c3b93276e385 --- compiler/utils/scoped_arena_allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/utils') diff --git a/compiler/utils/scoped_arena_allocator.h b/compiler/utils/scoped_arena_allocator.h index 37799cb..9f33f2d 100644 --- a/compiler/utils/scoped_arena_allocator.h +++ b/compiler/utils/scoped_arena_allocator.h @@ -222,11 +222,11 @@ class ScopedArenaAllocatorAdapter : private DebugStackReference, private DebugSt } void construct(pointer p, const_reference val) { - DebugStackIndirectTopRef::CheckTop(); + // Don't CheckTop(), allow reusing existing capacity of a vector/deque below the top. new (static_cast(p)) value_type(val); } void destroy(pointer p) { - DebugStackIndirectTopRef::CheckTop(); + // Don't CheckTop(), allow reusing existing capacity of a vector/deque below the top. p->~value_type(); } -- cgit v1.1