Home | History | Annotate | Download | only in space

Lines Matching full:rosalloc

45 // template class MemoryToolMallocSpace<RosAllocSpace, allocator::RosAlloc*>;
48 art::gc::allocator::RosAlloc* rosalloc, uint8_t* begin, uint8_t* end,
53 rosalloc_(rosalloc), low_memory_mode_(low_memory_mode) {
54 CHECK(rosalloc != nullptr);
65 allocator::RosAlloc* rosalloc = CreateRosAlloc(mem_map->Begin(), starting_size, initial_size,
67 if (rosalloc == nullptr) {
68 LOG(ERROR) << "Failed to initialize rosalloc for alloc space (" << name << ")";
84 mem_map, initial_size, name, rosalloc, begin, end, begin + capacity, growth_limit,
87 return new RosAllocSpace(mem_map, initial_size, name, rosalloc, begin, end, begin + capacity,
109 // Memory we promise to rosalloc before it asks for morecore.
110 // Note: making this value large means that large allocations are unlikely to succeed as rosalloc
133 allocator::RosAlloc* RosAllocSpace::CreateRosAlloc(void* begin, size_t morecore_start,
139 // create rosalloc using our backing storage starting at begin and
142 allocator::RosAlloc* rosalloc = new art::gc::allocator::RosAlloc(
145 art::gc::allocator::RosAlloc::kPageReleaseModeAll :
146 art::gc::allocator::RosAlloc::kPageReleaseModeSizeAndEnd,
148 if (rosalloc != nullptr) {
149 rosalloc->SetFootprintLimit(initial_size);
151 PLOG(ERROR) << "RosAlloc::Create failed";
153 return rosalloc;
172 // Note RosAlloc zeroes memory internally.
184 mem_map, initial_size_, name, reinterpret_cast<allocator::RosAlloc*>(allocator), begin, end,
188 reinterpret_cast<allocator::RosAlloc*>(allocator), begin, end, limit,
250 // SOA required for Rosalloc::Trim() -> ArtRosAllocMoreCore() -> Heap::GetRosAllocSpace.
293 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false);
299 InspectAllRosAlloc(art::gc::allocator::RosAlloc::ObjectsAllocatedCallback, &objects_allocated, false);
415 // Callback from rosalloc when it needs to increase the footprint.
416 void* ArtRosAllocMoreCore(allocator::RosAlloc* rosalloc, intptr_t increment)
419 art::gc::space::RosAllocSpace* rosalloc_space = heap->GetRosAllocSpace(rosalloc);
421 DCHECK_EQ(rosalloc_space->GetRosAlloc(), rosalloc);