summaryrefslogtreecommitdiff
path: root/compiler/exception_test.cc
diff options
context:
space:
mode:
author David Sehr <sehr@google.com> 2018-04-03 17:10:12 -0700
committer David Sehr <sehr@google.com> 2018-04-04 14:47:57 -0700
commit3215fff7ef8fa3c2250b91158560eacc613a4671 (patch)
tree50d6fe7aff3f8fae31dcf2ca020f5079f49a592f /compiler/exception_test.cc
parent6371249ce05032db5d8c4c7ec96bf7fd7264c42f (diff)
Separate Malloc and MemMap ArenaPools
Make ArenaPool an abstract base class and leave MallocArenaPool implementation with it. This enables arena_allocator to be free of MemMap, Mutex, etc., in preparation to move the remaining collections out of runtime/base to libartbase/base. Bug: 22322814 Test: make -j 50 test-art-host build and boot Change-Id: Ief84dcbfb749165d9bc82000c6b8f96f93052422
Diffstat (limited to 'compiler/exception_test.cc')
-rw-r--r--compiler/exception_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/exception_test.cc b/compiler/exception_test.cc
index f582341b18..c139fcf1d8 100644
--- a/compiler/exception_test.cc
+++ b/compiler/exception_test.cc
@@ -20,6 +20,7 @@
#include "base/callee_save_type.h"
#include "base/enums.h"
#include "base/leb128.h"
+#include "base/malloc_arena_pool.h"
#include "class_linker.h"
#include "common_runtime_test.h"
#include "dex/code_item_accessors-inl.h"
@@ -67,7 +68,7 @@ class ExceptionTest : public CommonRuntimeTest {
fake_code_.push_back(0x70 | i);
}
- ArenaPool pool;
+ MallocArenaPool pool;
ArenaStack arena_stack(&pool);
ScopedArenaAllocator allocator(&arena_stack);
StackMapStream stack_maps(&allocator, kRuntimeISA);