Lines Matching refs:allocator
26 #include "base/allocator.h"
205 // If we aren't the zygote, switch to the default non zygote allocator. This may update the
517 void Heap::ChangeAllocator(AllocatorType allocator) {
518 if (current_allocator_ != allocator) {
520 CHECK_NE(allocator, kAllocatorTypeLOS);
521 CHECK_NE(allocator, kAllocatorTypeNonMoving);
522 current_allocator_ = allocator;
1269 space::RosAllocSpace* Heap::GetRosAllocSpace(gc::allocator::RosAlloc* rosalloc) const {
1280 mirror::Object* Heap::AllocateInternalWithGc(Thread* self, AllocatorType allocator,
1284 bool was_default_allocator = allocator == GetCurrentAllocator();
1295 // If we were the default allocator but the allocator changed while we were suspended,
1297 if (was_default_allocator && allocator != GetCurrentAllocator()) {
1301 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1311 if (was_default_allocator && allocator != GetCurrentAllocator()) {
1315 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1330 if (was_default_allocator && allocator != GetCurrentAllocator()) {
1335 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated,
1344 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1359 if (was_default_allocator && allocator != GetCurrentAllocator()) {
1362 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size);
1365 switch (allocator) {
1377 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1409 if (!IsOutOfMemoryOnAllocation<false>(allocator, alloc_size)) {
1421 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated,
1434 ThrowOutOfMemoryError(self, alloc_size, allocator);
1899 // allocator.
2212 LOG(FATAL) << "Invalid current allocator " << current_allocator_;