Lines Matching refs:allocator
28 #include "base/allocator.h"
298 // If we aren't the zygote, switch to the default non zygote allocator. This may update the
710 void Heap::ChangeAllocator(AllocatorType allocator) {
711 if (current_allocator_ != allocator) {
713 CHECK_NE(allocator, kAllocatorTypeLOS);
714 CHECK_NE(allocator, kAllocatorTypeNonMoving);
715 current_allocator_ = allocator;
1551 space::RosAllocSpace* Heap::GetRosAllocSpace(gc::allocator::RosAlloc* rosalloc) const {
1572 AllocatorType allocator,
1579 bool was_default_allocator = allocator == GetCurrentAllocator();
1588 // If we were the default allocator but the allocator changed while we were suspended,
1590 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1596 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1606 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1611 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1626 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1632 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1641 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1656 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1660 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size,
1664 switch (allocator) {
1674 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1681 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1718 if (!IsOutOfMemoryOnAllocation(allocator, alloc_size, /*grow*/ false)) {
1723 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1735 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1748 ThrowOutOfMemoryError(self, alloc_size, allocator);
2226 // allocator.
2603 LOG(FATAL) << "Invalid current allocator " << current_allocator_;