Lines Matching refs:RosAlloc
42 // template class ValgrindMallocSpace<RosAllocSpace, allocator::RosAlloc*>;
45 art::gc::allocator::RosAlloc* rosalloc, byte* begin, byte* end,
50 rosalloc_(rosalloc), low_memory_mode_(low_memory_mode) {
51 CHECK(rosalloc != nullptr);
59 allocator::RosAlloc* rosalloc = CreateRosAlloc(mem_map->Begin(), starting_size, initial_size,
61 if (rosalloc == NULL) {
62 LOG(ERROR) << "Failed to initialize rosalloc for alloc space (" << name << ")";
79 return new RosAllocSpace(name, mem_map, rosalloc, begin, end, begin + capacity, growth_limit,
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
125 allocator::RosAlloc* RosAllocSpace::CreateRosAlloc(void* begin, size_t morecore_start,
130 // create rosalloc using our backing storage starting at begin and
133 allocator::RosAlloc* rosalloc = new art::gc::allocator::RosAlloc(
136 art::gc::allocator::RosAlloc::kPageReleaseModeAll :
137 art::gc::allocator::RosAlloc::kPageReleaseModeSizeAndEnd);
138 if (rosalloc != NULL) {
139 rosalloc->SetFootprintLimit(initial_size);
141 PLOG(ERROR) << "RosAlloc::Create failed";
143 return rosalloc;
160 // Note RosAlloc zeroes memory internally.
169 return new RosAllocSpace(name, mem_map, reinterpret_cast<allocator::RosAlloc*>(allocator),
227 // Callback from rosalloc when it needs to increase the footprint
228 extern "C" void* art_heap_rosalloc_morecore(allocator::RosAlloc* rosalloc, intptr_t increment) {
230 RosAllocSpace* rosalloc_space = heap->GetRosAllocSpace(rosalloc);
232 DCHECK_EQ(rosalloc_space->GetRosAlloc(), rosalloc);
280 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false);
286 InspectAllRosAlloc(art::gc::allocator::RosAlloc::ObjectsAllocatedCallback, &objects_allocated, false);