equal
deleted
inserted
replaced
34 } |
34 } |
35 |
35 |
36 HeapWord* G1Allocator::attempt_allocation_locked(size_t word_size, AllocationContext_t context) { |
36 HeapWord* G1Allocator::attempt_allocation_locked(size_t word_size, AllocationContext_t context) { |
37 HeapWord* result = mutator_alloc_region(context)->attempt_allocation_locked(word_size, false /* bot_updates */); |
37 HeapWord* result = mutator_alloc_region(context)->attempt_allocation_locked(word_size, false /* bot_updates */); |
38 assert(result != NULL || mutator_alloc_region(context)->get() == NULL, |
38 assert(result != NULL || mutator_alloc_region(context)->get() == NULL, |
39 err_msg("Must not have a mutator alloc region if there is no memory, but is " PTR_FORMAT, p2i(mutator_alloc_region(context)->get()))); |
39 "Must not have a mutator alloc region if there is no memory, but is " PTR_FORMAT, p2i(mutator_alloc_region(context)->get())); |
40 return result; |
40 return result; |
41 } |
41 } |
42 |
42 |
43 HeapWord* G1Allocator::attempt_allocation_force(size_t word_size, AllocationContext_t context) { |
43 HeapWord* G1Allocator::attempt_allocation_force(size_t word_size, AllocationContext_t context) { |
44 return mutator_alloc_region(context)->attempt_allocation_force(word_size, false /* bot_updates */); |
44 return mutator_alloc_region(context)->attempt_allocation_force(word_size, false /* bot_updates */); |