diff options
Diffstat (limited to 'runtime/gc/allocator/rosalloc.h')
-rw-r--r-- | runtime/gc/allocator/rosalloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/gc/allocator/rosalloc.h b/runtime/gc/allocator/rosalloc.h index 562fc750ed..b85d7dff5c 100644 --- a/runtime/gc/allocator/rosalloc.h +++ b/runtime/gc/allocator/rosalloc.h @@ -707,6 +707,9 @@ class RosAlloc { // the end of the memory region that's ever managed by this allocator. size_t max_capacity_; + template<class Key, AllocatorTag kTag, class Compare = std::less<Key>> + using AllocationTrackingSet = std::set<Key, Compare, TrackingAllocator<Key, kTag>>; + // The run sets that hold the runs whose slots are not all // full. non_full_runs_[i] is guarded by size_bracket_locks_[i]. AllocationTrackingSet<Run*, kAllocatorTagRosAlloc> non_full_runs_[kNumOfSizeBrackets]; |