diff options
Diffstat (limited to 'runtime/gc/heap.h')
-rw-r--r-- | runtime/gc/heap.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/runtime/gc/heap.h b/runtime/gc/heap.h index 631397b..c631372 100644 --- a/runtime/gc/heap.h +++ b/runtime/gc/heap.h @@ -21,6 +21,7 @@ #include <string> #include <vector> +#include "allocator_type.h" #include "atomic.h" #include "base/timing_logger.h" #include "gc/accounting/atomic_stack.h" @@ -90,16 +91,6 @@ class AgeCardVisitor { } }; -// Different types of allocators. -enum AllocatorType { - kAllocatorTypeBumpPointer, // Use BumpPointer allocator, has entrypoints. - kAllocatorTypeTLAB, // Use TLAB allocator, has entrypoints. - kAllocatorTypeRosAlloc, // Use RosAlloc allocator, has entrypoints. - kAllocatorTypeDlMalloc, // Use dlmalloc allocator, has entrypoints. - kAllocatorTypeNonMoving, // Special allocator for non moving objects, doesn't have entrypoints. - kAllocatorTypeLOS, // Large object space, also doesn't have entrypoints. -}; - // If true, use rosalloc/RosAllocSpace instead of dlmalloc/DlMallocSpace static constexpr bool kUseRosAlloc = true; |