blob: d25694ad242b09d498994faaa52a01809c115069 [file] [log] [blame]
Hiroshi Yamauchi7cb7bbc2013-11-18 17:27:37 -08001
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -07002/*
3 * Copyright (C) 2013 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -070018#include "rosalloc_space-inl.h"
Mathieu Chartiera8e8f9c2014-04-09 14:51:05 -070019
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -070020#include "gc/accounting/card_table.h"
Mathieu Chartiera8e8f9c2014-04-09 14:51:05 -070021#include "gc/accounting/space_bitmap-inl.h"
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -070022#include "gc/heap.h"
23#include "mirror/class-inl.h"
24#include "mirror/object-inl.h"
25#include "runtime.h"
26#include "thread.h"
27#include "thread_list.h"
28#include "utils.h"
Ian Rogers6fac4472014-02-25 17:01:10 -080029#include "valgrind_malloc_space-inl.h"
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -070030
31namespace art {
32namespace gc {
33namespace space {
34
Mathieu Chartier73d1e172014-04-11 17:53:48 -070035static constexpr bool kPrefetchDuringRosAllocFreeList = false;
Mathieu Chartier8585bad2014-04-11 17:53:48 -070036static constexpr size_t kPrefetchLookAhead = 8;
37// Use this only for verification, it is not safe to use since the class of the object may have
38// been freed.
39static constexpr bool kVerifyFreedBytes = false;
Ian Rogers6fac4472014-02-25 17:01:10 -080040
Mathieu Chartier31f44142014-04-08 14:40:03 -070041// TODO: Fix
42// template class ValgrindMallocSpace<RosAllocSpace, allocator::RosAlloc*>;
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -070043
44RosAllocSpace::RosAllocSpace(const std::string& name, MemMap* mem_map,
Ian Rogers13735952014-10-08 12:43:28 -070045 art::gc::allocator::RosAlloc* rosalloc, uint8_t* begin, uint8_t* end,
46 uint8_t* limit, size_t growth_limit, bool can_move_objects,
Mathieu Chartier31f44142014-04-08 14:40:03 -070047 size_t starting_size, size_t initial_size, bool low_memory_mode)
48 : MallocSpace(name, mem_map, begin, end, limit, growth_limit, true, can_move_objects,
49 starting_size, initial_size),
50 rosalloc_(rosalloc), low_memory_mode_(low_memory_mode) {
51 CHECK(rosalloc != nullptr);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -070052}
53
Mathieu Chartiere6da9af2013-12-16 11:54:42 -080054RosAllocSpace* RosAllocSpace::CreateFromMemMap(MemMap* mem_map, const std::string& name,
Ian Rogersa55cf412014-02-27 00:31:26 -080055 size_t starting_size, size_t initial_size,
56 size_t growth_limit, size_t capacity,
Mathieu Chartier31f44142014-04-08 14:40:03 -070057 bool low_memory_mode, bool can_move_objects) {
Mathieu Chartiere6da9af2013-12-16 11:54:42 -080058 DCHECK(mem_map != nullptr);
59 allocator::RosAlloc* rosalloc = CreateRosAlloc(mem_map->Begin(), starting_size, initial_size,
Hiroshi Yamauchi26d69ff2014-02-27 11:27:10 -080060 capacity, low_memory_mode);
Mathieu Chartiere6da9af2013-12-16 11:54:42 -080061 if (rosalloc == NULL) {
62 LOG(ERROR) << "Failed to initialize rosalloc for alloc space (" << name << ")";
63 return NULL;
64 }
65
lzang1385de732014-02-21 14:15:01 +080066 // Protect memory beyond the starting size. MoreCore will add r/w permissions when necessory
Ian Rogers13735952014-10-08 12:43:28 -070067 uint8_t* end = mem_map->Begin() + starting_size;
lzang1385de732014-02-21 14:15:01 +080068 if (capacity - starting_size > 0) {
69 CHECK_MEMORY_CALL(mprotect, (end, capacity - starting_size, PROT_NONE), name);
Mathieu Chartiere6da9af2013-12-16 11:54:42 -080070 }
71
72 // Everything is set so record in immutable structure and leave
Ian Rogers13735952014-10-08 12:43:28 -070073 uint8_t* begin = mem_map->Begin();
Mathieu Chartier661974a2014-01-09 11:23:53 -080074 // TODO: Fix RosAllocSpace to support valgrind. There is currently some issues with
75 // AllocationSize caused by redzones. b/12944686
Mathieu Chartier36bf2162014-03-20 15:40:37 -070076 if (false && Runtime::Current()->GetHeap()->RunningOnValgrind()) {
Mathieu Chartier31f44142014-04-08 14:40:03 -070077 LOG(FATAL) << "Unimplemented";
Mathieu Chartiere6da9af2013-12-16 11:54:42 -080078 } else {
Mathieu Chartier31f44142014-04-08 14:40:03 -070079 return new RosAllocSpace(name, mem_map, rosalloc, begin, end, begin + capacity, growth_limit,
80 can_move_objects, starting_size, initial_size, low_memory_mode);
Mathieu Chartiere6da9af2013-12-16 11:54:42 -080081 }
Mathieu Chartiere6da9af2013-12-16 11:54:42 -080082}
83
Mathieu Chartier661974a2014-01-09 11:23:53 -080084RosAllocSpace::~RosAllocSpace() {
85 delete rosalloc_;
86}
87
Ian Rogers6fac4472014-02-25 17:01:10 -080088RosAllocSpace* RosAllocSpace::Create(const std::string& name, size_t initial_size,
Ian Rogers13735952014-10-08 12:43:28 -070089 size_t growth_limit, size_t capacity, uint8_t* requested_begin,
Mathieu Chartier31f44142014-04-08 14:40:03 -070090 bool low_memory_mode, bool can_move_objects) {
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -070091 uint64_t start_time = 0;
92 if (VLOG_IS_ON(heap) || VLOG_IS_ON(startup)) {
93 start_time = NanoTime();
94 VLOG(startup) << "RosAllocSpace::Create entering " << name
95 << " initial_size=" << PrettySize(initial_size)
96 << " growth_limit=" << PrettySize(growth_limit)
97 << " capacity=" << PrettySize(capacity)
98 << " requested_begin=" << reinterpret_cast<void*>(requested_begin);
99 }
100
101 // Memory we promise to rosalloc before it asks for morecore.
102 // Note: making this value large means that large allocations are unlikely to succeed as rosalloc
103 // will ask for this memory from sys_alloc which will fail as the footprint (this value plus the
104 // size of the large allocation) will be greater than the footprint limit.
Hiroshi Yamauchi5ccd4982014-03-11 12:19:04 -0700105 size_t starting_size = Heap::kDefaultStartingSize;
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700106 MemMap* mem_map = CreateMemMap(name, starting_size, &initial_size, &growth_limit, &capacity,
107 requested_begin);
108 if (mem_map == NULL) {
109 LOG(ERROR) << "Failed to create mem map for alloc space (" << name << ") of size "
110 << PrettySize(capacity);
111 return NULL;
112 }
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700113
Mathieu Chartiere6da9af2013-12-16 11:54:42 -0800114 RosAllocSpace* space = CreateFromMemMap(mem_map, name, starting_size, initial_size,
Mathieu Chartier31f44142014-04-08 14:40:03 -0700115 growth_limit, capacity, low_memory_mode,
116 can_move_objects);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700117 // We start out with only the initial size possibly containing objects.
118 if (VLOG_IS_ON(heap) || VLOG_IS_ON(startup)) {
119 LOG(INFO) << "RosAllocSpace::Create exiting (" << PrettyDuration(NanoTime() - start_time)
120 << " ) " << *space;
121 }
122 return space;
123}
124
Mathieu Chartier31f44142014-04-08 14:40:03 -0700125allocator::RosAlloc* RosAllocSpace::CreateRosAlloc(void* begin, size_t morecore_start,
126 size_t initial_size,
Hiroshi Yamauchi26d69ff2014-02-27 11:27:10 -0800127 size_t maximum_size, bool low_memory_mode) {
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700128 // clear errno to allow PLOG on error
129 errno = 0;
130 // create rosalloc using our backing storage starting at begin and
131 // with a footprint of morecore_start. When morecore_start bytes of
132 // memory is exhaused morecore will be called.
Hiroshi Yamauchi573f7d22013-12-17 11:54:23 -0800133 allocator::RosAlloc* rosalloc = new art::gc::allocator::RosAlloc(
Hiroshi Yamauchi26d69ff2014-02-27 11:27:10 -0800134 begin, morecore_start, maximum_size,
Hiroshi Yamauchi573f7d22013-12-17 11:54:23 -0800135 low_memory_mode ?
136 art::gc::allocator::RosAlloc::kPageReleaseModeAll :
137 art::gc::allocator::RosAlloc::kPageReleaseModeSizeAndEnd);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700138 if (rosalloc != NULL) {
139 rosalloc->SetFootprintLimit(initial_size);
140 } else {
141 PLOG(ERROR) << "RosAlloc::Create failed";
Mathieu Chartiere6da9af2013-12-16 11:54:42 -0800142 }
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700143 return rosalloc;
144}
145
Ian Rogers6fac4472014-02-25 17:01:10 -0800146mirror::Object* RosAllocSpace::AllocWithGrowth(Thread* self, size_t num_bytes,
147 size_t* bytes_allocated, size_t* usable_size) {
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700148 mirror::Object* result;
149 {
150 MutexLock mu(self, lock_);
151 // Grow as much as possible within the space.
152 size_t max_allowed = Capacity();
153 rosalloc_->SetFootprintLimit(max_allowed);
154 // Try the allocation.
Ian Rogers6fac4472014-02-25 17:01:10 -0800155 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700156 // Shrink back down as small as possible.
157 size_t footprint = rosalloc_->Footprint();
158 rosalloc_->SetFootprintLimit(footprint);
159 }
160 // Note RosAlloc zeroes memory internally.
161 // Return the new allocation or NULL.
Mathieu Chartier0651d412014-04-29 14:37:57 -0700162 CHECK(!kDebugSpaces || result == nullptr || Contains(result));
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700163 return result;
164}
165
166MallocSpace* RosAllocSpace::CreateInstance(const std::string& name, MemMap* mem_map, void* allocator,
Ian Rogers13735952014-10-08 12:43:28 -0700167 uint8_t* begin, uint8_t* end, uint8_t* limit, size_t growth_limit,
Mathieu Chartier31f44142014-04-08 14:40:03 -0700168 bool can_move_objects) {
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700169 return new RosAllocSpace(name, mem_map, reinterpret_cast<allocator::RosAlloc*>(allocator),
Mathieu Chartier31f44142014-04-08 14:40:03 -0700170 begin, end, limit, growth_limit, can_move_objects, starting_size_,
171 initial_size_, low_memory_mode_);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700172}
173
174size_t RosAllocSpace::Free(Thread* self, mirror::Object* ptr) {
175 if (kDebugSpaces) {
176 CHECK(ptr != NULL);
177 CHECK(Contains(ptr)) << "Free (" << ptr << ") not in bounds of heap " << *this;
178 }
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700179 if (kRecentFreeCount > 0) {
180 MutexLock mu(self, lock_);
181 RegisterRecentFree(ptr);
182 }
Mathieu Chartier8585bad2014-04-11 17:53:48 -0700183 return rosalloc_->Free(self, ptr);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700184}
185
186size_t RosAllocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) {
Mathieu Chartier8585bad2014-04-11 17:53:48 -0700187 DCHECK(ptrs != nullptr);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700188
Mathieu Chartier8585bad2014-04-11 17:53:48 -0700189 size_t verify_bytes = 0;
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700190 for (size_t i = 0; i < num_ptrs; i++) {
Mathieu Chartier8585bad2014-04-11 17:53:48 -0700191 if (kPrefetchDuringRosAllocFreeList && i + kPrefetchLookAhead < num_ptrs) {
192 __builtin_prefetch(reinterpret_cast<char*>(ptrs[i + kPrefetchLookAhead]));
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700193 }
Mathieu Chartier8585bad2014-04-11 17:53:48 -0700194 if (kVerifyFreedBytes) {
195 verify_bytes += AllocationSizeNonvirtual(ptrs[i], nullptr);
196 }
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700197 }
198
199 if (kRecentFreeCount > 0) {
200 MutexLock mu(self, lock_);
201 for (size_t i = 0; i < num_ptrs; i++) {
202 RegisterRecentFree(ptrs[i]);
203 }
204 }
205
206 if (kDebugSpaces) {
207 size_t num_broken_ptrs = 0;
208 for (size_t i = 0; i < num_ptrs; i++) {
209 if (!Contains(ptrs[i])) {
210 num_broken_ptrs++;
211 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this;
212 } else {
213 size_t size = rosalloc_->UsableSize(ptrs[i]);
214 memset(ptrs[i], 0xEF, size);
215 }
216 }
217 CHECK_EQ(num_broken_ptrs, 0u);
218 }
219
Mathieu Chartier8585bad2014-04-11 17:53:48 -0700220 const size_t bytes_freed = rosalloc_->BulkFree(self, reinterpret_cast<void**>(ptrs), num_ptrs);
221 if (kVerifyFreedBytes) {
222 CHECK_EQ(verify_bytes, bytes_freed);
223 }
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700224 return bytes_freed;
225}
226
227// Callback from rosalloc when it needs to increase the footprint
228extern "C" void* art_heap_rosalloc_morecore(allocator::RosAlloc* rosalloc, intptr_t increment) {
229 Heap* heap = Runtime::Current()->GetHeap();
Zuo Wangf37a88b2014-07-10 04:26:41 -0700230 RosAllocSpace* rosalloc_space = heap->GetRosAllocSpace(rosalloc);
Mathieu Chartiere6da9af2013-12-16 11:54:42 -0800231 DCHECK(rosalloc_space != nullptr);
232 DCHECK_EQ(rosalloc_space->GetRosAlloc(), rosalloc);
233 return rosalloc_space->MoreCore(increment);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700234}
235
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700236size_t RosAllocSpace::Trim() {
Hiroshi Yamauchid9a88de2014-04-07 13:52:31 -0700237 VLOG(heap) << "RosAllocSpace::Trim() ";
Hiroshi Yamauchi573f7d22013-12-17 11:54:23 -0800238 {
239 MutexLock mu(Thread::Current(), lock_);
240 // Trim to release memory at the end of the space.
241 rosalloc_->Trim();
242 }
243 // Attempt to release pages if it does not release all empty pages.
244 if (!rosalloc_->DoesReleaseAllPages()) {
Hiroshi Yamauchid9a88de2014-04-07 13:52:31 -0700245 return rosalloc_->ReleasePages();
Hiroshi Yamauchi573f7d22013-12-17 11:54:23 -0800246 }
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700247 return 0;
248}
249
250void RosAllocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_arg),
251 void* arg) {
Hiroshi Yamauchi1cd53db2014-03-28 15:26:48 -0700252 InspectAllRosAlloc(callback, arg, true);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700253}
254
255size_t RosAllocSpace::GetFootprint() {
256 MutexLock mu(Thread::Current(), lock_);
257 return rosalloc_->Footprint();
258}
259
260size_t RosAllocSpace::GetFootprintLimit() {
261 MutexLock mu(Thread::Current(), lock_);
262 return rosalloc_->FootprintLimit();
263}
264
265void RosAllocSpace::SetFootprintLimit(size_t new_size) {
266 MutexLock mu(Thread::Current(), lock_);
267 VLOG(heap) << "RosAllocSpace::SetFootprintLimit " << PrettySize(new_size);
268 // Compare against the actual footprint, rather than the Size(), because the heap may not have
269 // grown all the way to the allowed size yet.
270 size_t current_space_size = rosalloc_->Footprint();
271 if (new_size < current_space_size) {
272 // Don't let the space grow any more.
273 new_size = current_space_size;
274 }
275 rosalloc_->SetFootprintLimit(new_size);
276}
277
278uint64_t RosAllocSpace::GetBytesAllocated() {
Hiroshi Yamauchi4ce1f002013-11-18 14:49:09 -0800279 size_t bytes_allocated = 0;
Hiroshi Yamauchi1cd53db2014-03-28 15:26:48 -0700280 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false);
Hiroshi Yamauchi4ce1f002013-11-18 14:49:09 -0800281 return bytes_allocated;
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700282}
283
284uint64_t RosAllocSpace::GetObjectsAllocated() {
Hiroshi Yamauchi4ce1f002013-11-18 14:49:09 -0800285 size_t objects_allocated = 0;
Hiroshi Yamauchi1cd53db2014-03-28 15:26:48 -0700286 InspectAllRosAlloc(art::gc::allocator::RosAlloc::ObjectsAllocatedCallback, &objects_allocated, false);
Hiroshi Yamauchi4ce1f002013-11-18 14:49:09 -0800287 return objects_allocated;
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700288}
289
Hiroshi Yamauchi1cd53db2014-03-28 15:26:48 -0700290void RosAllocSpace::InspectAllRosAllocWithSuspendAll(
291 void (*callback)(void *start, void *end, size_t num_bytes, void* callback_arg),
292 void* arg, bool do_null_callback_at_end) NO_THREAD_SAFETY_ANALYSIS {
293 // TODO: NO_THREAD_SAFETY_ANALYSIS.
294 Thread* self = Thread::Current();
295 ThreadList* tl = Runtime::Current()->GetThreadList();
296 tl->SuspendAll();
297 {
298 MutexLock mu(self, *Locks::runtime_shutdown_lock_);
299 MutexLock mu2(self, *Locks::thread_list_lock_);
300 rosalloc_->InspectAll(callback, arg);
301 if (do_null_callback_at_end) {
302 callback(NULL, NULL, 0, arg); // Indicate end of a space.
303 }
304 }
305 tl->ResumeAll();
306}
307
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700308void RosAllocSpace::InspectAllRosAlloc(void (*callback)(void *start, void *end, size_t num_bytes, void* callback_arg),
Hiroshi Yamauchi1cd53db2014-03-28 15:26:48 -0700309 void* arg, bool do_null_callback_at_end) NO_THREAD_SAFETY_ANALYSIS {
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700310 // TODO: NO_THREAD_SAFETY_ANALYSIS.
311 Thread* self = Thread::Current();
312 if (Locks::mutator_lock_->IsExclusiveHeld(self)) {
313 // The mutators are already suspended. For example, a call path
314 // from SignalCatcher::HandleSigQuit().
315 rosalloc_->InspectAll(callback, arg);
Hiroshi Yamauchi1cd53db2014-03-28 15:26:48 -0700316 if (do_null_callback_at_end) {
317 callback(NULL, NULL, 0, arg); // Indicate end of a space.
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700318 }
Hiroshi Yamauchi1cd53db2014-03-28 15:26:48 -0700319 } else if (Locks::mutator_lock_->IsSharedHeld(self)) {
320 // The mutators are not suspended yet and we have a shared access
321 // to the mutator lock. Temporarily release the shared access by
322 // transitioning to the suspend state, and suspend the mutators.
323 self->TransitionFromRunnableToSuspended(kSuspended);
324 InspectAllRosAllocWithSuspendAll(callback, arg, do_null_callback_at_end);
325 self->TransitionFromSuspendedToRunnable();
326 Locks::mutator_lock_->AssertSharedHeld(self);
327 } else {
328 // The mutators are not suspended yet. Suspend the mutators.
329 InspectAllRosAllocWithSuspendAll(callback, arg, do_null_callback_at_end);
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700330 }
331}
332
333void RosAllocSpace::RevokeThreadLocalBuffers(Thread* thread) {
334 rosalloc_->RevokeThreadLocalRuns(thread);
335}
336
337void RosAllocSpace::RevokeAllThreadLocalBuffers() {
338 rosalloc_->RevokeAllThreadLocalRuns();
339}
340
Ian Rogers68d8b422014-07-17 11:09:10 -0700341void RosAllocSpace::AssertThreadLocalBuffersAreRevoked(Thread* thread) {
342 if (kIsDebugBuild) {
343 rosalloc_->AssertThreadLocalRunsAreRevoked(thread);
344 }
345}
346
Hiroshi Yamauchic93c5302014-03-20 16:15:37 -0700347void RosAllocSpace::AssertAllThreadLocalBuffersAreRevoked() {
348 if (kIsDebugBuild) {
349 rosalloc_->AssertAllThreadLocalRunsAreRevoked();
350 }
351}
352
Mathieu Chartiere6da9af2013-12-16 11:54:42 -0800353void RosAllocSpace::Clear() {
Mathieu Chartier31f44142014-04-08 14:40:03 -0700354 size_t footprint_limit = GetFootprintLimit();
Mathieu Chartiere6da9af2013-12-16 11:54:42 -0800355 madvise(GetMemMap()->Begin(), GetMemMap()->Size(), MADV_DONTNEED);
Mathieu Chartier31f44142014-04-08 14:40:03 -0700356 live_bitmap_->Clear();
357 mark_bitmap_->Clear();
Ian Rogersbe2a1df2014-07-10 00:56:36 -0700358 SetEnd(begin_ + starting_size_);
Mathieu Chartier31f44142014-04-08 14:40:03 -0700359 delete rosalloc_;
360 rosalloc_ = CreateRosAlloc(mem_map_->Begin(), starting_size_, initial_size_, Capacity(),
361 low_memory_mode_);
362 SetFootprintLimit(footprint_limit);
Mathieu Chartier15d34022014-02-26 17:16:38 -0800363}
364
Hiroshi Yamauchicf58d4a2013-09-26 14:21:22 -0700365} // namespace space
366} // namespace gc
367} // namespace art