Home | History | Annotate | Download | only in gc

Lines Matching refs:allocator

25 #include "base/allocator.h"
256 // If we aren't the zygote, switch to the default non zygote allocator. This may update the
708 void Heap::ChangeAllocator(AllocatorType allocator) {
709 if (current_allocator_ != allocator) {
711 CHECK_NE(allocator, kAllocatorTypeLOS);
712 CHECK_NE(allocator, kAllocatorTypeNonMoving);
713 current_allocator_ = allocator;
1664 space::RosAllocSpace* Heap::GetRosAllocSpace(gc::allocator::RosAlloc* rosalloc) const {
1685 AllocatorType allocator,
1692 bool was_default_allocator = allocator == GetCurrentAllocator();
1702 // If we were the default allocator but the allocator changed while we were suspended,
1704 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1710 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1720 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1725 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1740 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1746 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1755 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1770 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1774 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size,
1778 switch (allocator) {
1788 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1795 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1828 if (!IsOutOfMemoryOnAllocation<false>(allocator, alloc_size)) {
1833 if ((was_default_allocator && allocator != GetCurrentAllocator()) ||
1845 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1858 ThrowOutOfMemoryError(self, alloc_size, allocator);
2364 // allocator.
2701 LOG(FATAL) << "Invalid current allocator " << current_allocator_;