OSDN Git Service

ART: Use arena allocator with HashSet/HashMap.
authorVladimir Marko <vmarko@google.com>
Mon, 5 Oct 2015 19:34:42 +0000 (20:34 +0100)
committerVladimir Marko <vmarko@google.com>
Fri, 9 Oct 2015 11:31:35 +0000 (12:31 +0100)
commit1f49764f7d62b2f80ce3418234a5036a59b2b762
tree7dfe677cdf802ae381484a525129024c44315dcb
parent80d3f4f00e2494f0311f04e8379497ec75376d46
ART: Use arena allocator with HashSet/HashMap.

Allow passing ArenaAllocatorAdapter (or any other allocator)
to HashSet/HashMap and create appropriate Arena- aliases.
Use the ArenaHashMap in StackMapsStream.

Update arena allocator adapters' construct()/destroy() to
C++11 std::allocator<> API.

Change-Id: I18544f718f84c6d6580228dd35297daf7f6afb5e
compiler/optimizing/stack_map_stream.h
runtime/base/arena_containers.h
runtime/base/hash_map.h
runtime/base/hash_set.h
runtime/base/scoped_arena_containers.h