hotspot/src/share/vm/gc/g1/g1Allocator.inline.hpp
changeset 33105 294e48b4f704
parent 32378 8dd0e7359751
child 46285 5b673a9fa682
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
    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 */);