Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ART_RUNTIME_GC_HEAP_INL_H_ |
| 18 | #define ART_RUNTIME_GC_HEAP_INL_H_ |
| 19 | |
| 20 | #include "heap.h" |
| 21 | |
| 22 | #include "debugger.h" |
Mathieu Chartier | 590fee9 | 2013-09-13 13:46:47 -0700 | [diff] [blame] | 23 | #include "gc/space/bump_pointer_space-inl.h" |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 24 | #include "gc/space/dlmalloc_space-inl.h" |
| 25 | #include "gc/space/large_object_space.h" |
Hiroshi Yamauchi | cf58d4a | 2013-09-26 14:21:22 -0700 | [diff] [blame] | 26 | #include "gc/space/rosalloc_space-inl.h" |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 27 | #include "object_utils.h" |
| 28 | #include "runtime.h" |
| 29 | #include "thread.h" |
| 30 | #include "thread-inl.h" |
Mathieu Chartier | 4e30541 | 2014-02-19 10:54:44 -0800 | [diff] [blame] | 31 | #include "verify_object-inl.h" |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 32 | |
| 33 | namespace art { |
| 34 | namespace gc { |
| 35 | |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 36 | template <bool kInstrumented, bool kCheckLargeObject, typename PreFenceVisitor> |
Mathieu Chartier | 1febddf | 2013-11-20 12:33:14 -0800 | [diff] [blame] | 37 | inline mirror::Object* Heap::AllocObjectWithAllocator(Thread* self, mirror::Class* klass, |
| 38 | size_t byte_count, AllocatorType allocator, |
| 39 | const PreFenceVisitor& pre_fence_visitor) { |
| 40 | DebugCheckPreconditionsForAllocObject(klass, byte_count); |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 41 | // Since allocation can cause a GC which will need to SuspendAll, make sure all allocations are |
| 42 | // done in the runnable state where suspension is expected. |
| 43 | DCHECK_EQ(self->GetState(), kRunnable); |
| 44 | self->AssertThreadSuspensionIsAllowable(); |
Mathieu Chartier | c528dba | 2013-11-26 12:00:11 -0800 | [diff] [blame] | 45 | // Need to check that we arent the large object allocator since the large object allocation code |
| 46 | // path this function. If we didn't check we would have an infinite loop. |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 47 | if (kCheckLargeObject && UNLIKELY(ShouldAllocLargeObject(klass, byte_count))) { |
Mathieu Chartier | c528dba | 2013-11-26 12:00:11 -0800 | [diff] [blame] | 48 | return AllocLargeObject<kInstrumented, PreFenceVisitor>(self, klass, byte_count, |
| 49 | pre_fence_visitor); |
| 50 | } |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 51 | mirror::Object* obj; |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 52 | AllocationTimer alloc_timer(this, &obj); |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 53 | size_t bytes_allocated; |
Mathieu Chartier | c528dba | 2013-11-26 12:00:11 -0800 | [diff] [blame] | 54 | obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 55 | if (UNLIKELY(obj == nullptr)) { |
Mathieu Chartier | e6da9af | 2013-12-16 11:54:42 -0800 | [diff] [blame] | 56 | bool is_current_allocator = allocator == GetCurrentAllocator(); |
Mathieu Chartier | c528dba | 2013-11-26 12:00:11 -0800 | [diff] [blame] | 57 | obj = AllocateInternalWithGc(self, allocator, byte_count, &bytes_allocated, &klass); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 58 | if (obj == nullptr) { |
Mathieu Chartier | e6da9af | 2013-12-16 11:54:42 -0800 | [diff] [blame] | 59 | bool after_is_current_allocator = allocator == GetCurrentAllocator(); |
| 60 | if (is_current_allocator && !after_is_current_allocator) { |
| 61 | // If the allocator changed, we need to restart the allocation. |
| 62 | return AllocObject<kInstrumented>(self, klass, byte_count); |
| 63 | } |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 64 | return nullptr; |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 65 | } |
| 66 | } |
Mathieu Chartier | 1febddf | 2013-11-20 12:33:14 -0800 | [diff] [blame] | 67 | obj->SetClass(klass); |
| 68 | pre_fence_visitor(obj); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 69 | DCHECK_GT(bytes_allocated, 0u); |
| 70 | const size_t new_num_bytes_allocated = |
Ian Rogers | b122a4b | 2013-11-19 18:00:50 -0800 | [diff] [blame] | 71 | static_cast<size_t>(num_bytes_allocated_.FetchAndAdd(bytes_allocated)) + bytes_allocated; |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 72 | // TODO: Deprecate. |
| 73 | if (kInstrumented) { |
| 74 | if (Runtime::Current()->HasStatsEnabled()) { |
| 75 | RuntimeStats* thread_stats = self->GetStats(); |
| 76 | ++thread_stats->allocated_objects; |
| 77 | thread_stats->allocated_bytes += bytes_allocated; |
| 78 | RuntimeStats* global_stats = Runtime::Current()->GetStats(); |
| 79 | ++global_stats->allocated_objects; |
| 80 | global_stats->allocated_bytes += bytes_allocated; |
| 81 | } |
| 82 | } else { |
| 83 | DCHECK(!Runtime::Current()->HasStatsEnabled()); |
| 84 | } |
| 85 | if (AllocatorHasAllocationStack(allocator)) { |
Hiroshi Yamauchi | f5b0e20 | 2014-02-11 17:02:22 -0800 | [diff] [blame] | 86 | PushOnAllocationStack(self, obj); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 87 | } |
| 88 | if (kInstrumented) { |
| 89 | if (Dbg::IsAllocTrackingEnabled()) { |
Mathieu Chartier | 1febddf | 2013-11-20 12:33:14 -0800 | [diff] [blame] | 90 | Dbg::RecordAllocation(klass, bytes_allocated); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 91 | } |
| 92 | } else { |
| 93 | DCHECK(!Dbg::IsAllocTrackingEnabled()); |
| 94 | } |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 95 | // concurrent_gc_ isn't known at compile time so we can optimize by not checking it for |
| 96 | // the BumpPointer or TLAB allocators. This is nice since it allows the entire if statement to be |
| 97 | // optimized out. And for the other allocators, AllocatorMayHaveConcurrentGC is a constant since |
| 98 | // the allocator_type should be constant propagated. |
| 99 | if (AllocatorMayHaveConcurrentGC(allocator) && concurrent_gc_) { |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 100 | CheckConcurrentGC(self, new_num_bytes_allocated, obj); |
| 101 | } |
Mathieu Chartier | 4e30541 | 2014-02-19 10:54:44 -0800 | [diff] [blame] | 102 | VerifyObject(obj); |
| 103 | self->VerifyStack(); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 104 | return obj; |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 105 | } |
| 106 | |
Hiroshi Yamauchi | f5b0e20 | 2014-02-11 17:02:22 -0800 | [diff] [blame] | 107 | // The size of a thread-local allocation stack in the number of references. |
| 108 | static constexpr size_t kThreadLocalAllocationStackSize = 128; |
| 109 | |
| 110 | inline void Heap::PushOnAllocationStack(Thread* self, mirror::Object* obj) { |
| 111 | if (kUseThreadLocalAllocationStack) { |
| 112 | bool success = self->PushOnThreadLocalAllocationStack(obj); |
| 113 | if (UNLIKELY(!success)) { |
| 114 | // Slow path. Allocate a new thread-local allocation stack. |
| 115 | mirror::Object** start_address; |
| 116 | mirror::Object** end_address; |
| 117 | while (!allocation_stack_->AtomicBumpBack(kThreadLocalAllocationStackSize, |
| 118 | &start_address, &end_address)) { |
| 119 | CollectGarbageInternal(collector::kGcTypeSticky, kGcCauseForAlloc, false); |
| 120 | } |
| 121 | self->SetThreadLocalAllocationStack(start_address, end_address); |
| 122 | // Retry on the new thread-local allocation stack. |
| 123 | success = self->PushOnThreadLocalAllocationStack(obj); |
| 124 | // Must succeed. |
| 125 | CHECK(success); |
| 126 | } |
| 127 | } else { |
| 128 | // This is safe to do since the GC will never free objects which are neither in the allocation |
| 129 | // stack or the live bitmap. |
| 130 | while (!allocation_stack_->AtomicPushBack(obj)) { |
| 131 | CollectGarbageInternal(collector::kGcTypeSticky, kGcCauseForAlloc, false); |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | |
Mathieu Chartier | c528dba | 2013-11-26 12:00:11 -0800 | [diff] [blame] | 136 | template <bool kInstrumented, typename PreFenceVisitor> |
| 137 | inline mirror::Object* Heap::AllocLargeObject(Thread* self, mirror::Class* klass, |
| 138 | size_t byte_count, |
| 139 | const PreFenceVisitor& pre_fence_visitor) { |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 140 | return AllocObjectWithAllocator<kInstrumented, false, PreFenceVisitor>(self, klass, byte_count, |
| 141 | kAllocatorTypeLOS, |
| 142 | pre_fence_visitor); |
Mathieu Chartier | c528dba | 2013-11-26 12:00:11 -0800 | [diff] [blame] | 143 | } |
| 144 | |
| 145 | template <const bool kInstrumented, const bool kGrow> |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 146 | inline mirror::Object* Heap::TryToAllocate(Thread* self, AllocatorType allocator_type, |
Mathieu Chartier | c528dba | 2013-11-26 12:00:11 -0800 | [diff] [blame] | 147 | size_t alloc_size, size_t* bytes_allocated) { |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 148 | if (UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, alloc_size))) { |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 149 | return nullptr; |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 150 | } |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 151 | mirror::Object* ret; |
| 152 | switch (allocator_type) { |
| 153 | case kAllocatorTypeBumpPointer: { |
| 154 | DCHECK(bump_pointer_space_ != nullptr); |
| 155 | alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); |
| 156 | ret = bump_pointer_space_->AllocNonvirtual(alloc_size); |
| 157 | if (LIKELY(ret != nullptr)) { |
| 158 | *bytes_allocated = alloc_size; |
| 159 | } |
| 160 | break; |
| 161 | } |
Mathieu Chartier | e6da9af | 2013-12-16 11:54:42 -0800 | [diff] [blame] | 162 | case kAllocatorTypeRosAlloc: { |
| 163 | if (kInstrumented && UNLIKELY(running_on_valgrind_)) { |
| 164 | // If running on valgrind, we should be using the instrumented path. |
| 165 | ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 166 | } else { |
Mathieu Chartier | e6da9af | 2013-12-16 11:54:42 -0800 | [diff] [blame] | 167 | DCHECK(!running_on_valgrind_); |
| 168 | ret = rosalloc_space_->AllocNonvirtual(self, alloc_size, bytes_allocated); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 169 | } |
| 170 | break; |
| 171 | } |
Mathieu Chartier | e6da9af | 2013-12-16 11:54:42 -0800 | [diff] [blame] | 172 | case kAllocatorTypeDlMalloc: { |
| 173 | if (kInstrumented && UNLIKELY(running_on_valgrind_)) { |
| 174 | // If running on valgrind, we should be using the instrumented path. |
| 175 | ret = dlmalloc_space_->Alloc(self, alloc_size, bytes_allocated); |
| 176 | } else { |
| 177 | DCHECK(!running_on_valgrind_); |
| 178 | ret = dlmalloc_space_->AllocNonvirtual(self, alloc_size, bytes_allocated); |
| 179 | } |
| 180 | break; |
| 181 | } |
| 182 | case kAllocatorTypeNonMoving: { |
| 183 | ret = non_moving_space_->Alloc(self, alloc_size, bytes_allocated); |
| 184 | break; |
| 185 | } |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 186 | case kAllocatorTypeLOS: { |
| 187 | ret = large_object_space_->Alloc(self, alloc_size, bytes_allocated); |
Hiroshi Yamauchi | 95a659f | 2013-11-22 14:43:45 -0800 | [diff] [blame] | 188 | // Note that the bump pointer spaces aren't necessarily next to |
| 189 | // the other continuous spaces like the non-moving alloc space or |
| 190 | // the zygote space. |
| 191 | DCHECK(ret == nullptr || large_object_space_->Contains(ret)); |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 192 | break; |
| 193 | } |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 194 | case kAllocatorTypeTLAB: { |
| 195 | alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); |
Mathieu Chartier | e6da9af | 2013-12-16 11:54:42 -0800 | [diff] [blame] | 196 | if (UNLIKELY(self->TlabSize() < alloc_size)) { |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 197 | // Try allocating a new thread local buffer, if the allocaiton fails the space must be |
| 198 | // full so return nullptr. |
Mathieu Chartier | e6da9af | 2013-12-16 11:54:42 -0800 | [diff] [blame] | 199 | if (!bump_pointer_space_->AllocNewTlab(self, alloc_size + kDefaultTLABSize)) { |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 200 | return nullptr; |
| 201 | } |
| 202 | } |
| 203 | // The allocation can't fail. |
Mathieu Chartier | e6da9af | 2013-12-16 11:54:42 -0800 | [diff] [blame] | 204 | ret = self->AllocTlab(alloc_size); |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 205 | DCHECK(ret != nullptr); |
| 206 | *bytes_allocated = alloc_size; |
| 207 | break; |
| 208 | } |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 209 | default: { |
| 210 | LOG(FATAL) << "Invalid allocator type"; |
| 211 | ret = nullptr; |
| 212 | } |
| 213 | } |
| 214 | return ret; |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 215 | } |
| 216 | |
Mathieu Chartier | 590fee9 | 2013-09-13 13:46:47 -0700 | [diff] [blame] | 217 | inline void Heap::DebugCheckPreconditionsForAllocObject(mirror::Class* c, size_t byte_count) { |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 218 | DCHECK(c == NULL || (c->IsClassClass() && byte_count >= sizeof(mirror::Class)) || |
| 219 | (c->IsVariableSize() || c->GetObjectSize() == byte_count) || |
Ian Rogers | dfb325e | 2013-10-30 01:00:44 -0700 | [diff] [blame] | 220 | strlen(ClassHelper(c).GetDescriptor()) == 0); |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 221 | DCHECK_GE(byte_count, sizeof(mirror::Object)); |
| 222 | } |
| 223 | |
| 224 | inline Heap::AllocationTimer::AllocationTimer(Heap* heap, mirror::Object** allocated_obj_ptr) |
| 225 | : heap_(heap), allocated_obj_ptr_(allocated_obj_ptr) { |
| 226 | if (kMeasureAllocationTime) { |
| 227 | allocation_start_time_ = NanoTime() / kTimeAdjust; |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | inline Heap::AllocationTimer::~AllocationTimer() { |
| 232 | if (kMeasureAllocationTime) { |
| 233 | mirror::Object* allocated_obj = *allocated_obj_ptr_; |
| 234 | // Only if the allocation succeeded, record the time. |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 235 | if (allocated_obj != nullptr) { |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 236 | uint64_t allocation_end_time = NanoTime() / kTimeAdjust; |
Ian Rogers | b122a4b | 2013-11-19 18:00:50 -0800 | [diff] [blame] | 237 | heap_->total_allocation_time_.FetchAndAdd(allocation_end_time - allocation_start_time_); |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 238 | } |
| 239 | } |
| 240 | }; |
| 241 | |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 242 | inline bool Heap::ShouldAllocLargeObject(mirror::Class* c, size_t byte_count) const { |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 243 | // We need to have a zygote space or else our newly allocated large object can end up in the |
| 244 | // Zygote resulting in it being prematurely freed. |
| 245 | // We can only do this for primitive objects since large objects will not be within the card table |
| 246 | // range. This also means that we rely on SetClass not dirtying the object's card. |
| 247 | return byte_count >= kLargeObjectThreshold && have_zygote_space_ && c->IsPrimitiveArray(); |
| 248 | } |
| 249 | |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 250 | template <bool kGrow> |
| 251 | inline bool Heap::IsOutOfMemoryOnAllocation(AllocatorType allocator_type, size_t alloc_size) { |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 252 | size_t new_footprint = num_bytes_allocated_ + alloc_size; |
| 253 | if (UNLIKELY(new_footprint > max_allowed_footprint_)) { |
| 254 | if (UNLIKELY(new_footprint > growth_limit_)) { |
| 255 | return true; |
| 256 | } |
Mathieu Chartier | 692fafd | 2013-11-29 17:24:40 -0800 | [diff] [blame] | 257 | if (!AllocatorMayHaveConcurrentGC(allocator_type) || !concurrent_gc_) { |
Mathieu Chartier | c528dba | 2013-11-26 12:00:11 -0800 | [diff] [blame] | 258 | if (!kGrow) { |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 259 | return true; |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 260 | } |
Mathieu Chartier | 7bf82af | 2013-12-06 16:51:45 -0800 | [diff] [blame] | 261 | // TODO: Grow for allocation is racy, fix it. |
| 262 | VLOG(heap) << "Growing heap from " << PrettySize(max_allowed_footprint_) << " to " |
| 263 | << PrettySize(new_footprint) << " for a " << PrettySize(alloc_size) << " allocation"; |
| 264 | max_allowed_footprint_ = new_footprint; |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 265 | } |
| 266 | } |
| 267 | return false; |
| 268 | } |
| 269 | |
Mathieu Chartier | cbb2d20 | 2013-11-14 17:45:16 -0800 | [diff] [blame] | 270 | inline void Heap::CheckConcurrentGC(Thread* self, size_t new_num_bytes_allocated, |
| 271 | mirror::Object* obj) { |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 272 | if (UNLIKELY(new_num_bytes_allocated >= concurrent_start_bytes_)) { |
| 273 | // The SirtRef is necessary since the calls in RequestConcurrentGC are a safepoint. |
| 274 | SirtRef<mirror::Object> ref(self, obj); |
| 275 | RequestConcurrentGC(self); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | } // namespace gc |
| 280 | } // namespace art |
| 281 | |
| 282 | #endif // ART_RUNTIME_GC_HEAP_INL_H_ |