src/hotspot/share/gc/g1/g1Allocator.cpp
changeset 49806 2d62570a615c
parent 49713 456e51e56ea2
child 49945 9425445633cf
equal deleted inserted replaced
49805:1ccbcd88f66c 49806:2d62570a615c
   269 }
   269 }
   270 
   270 
   271 HeapWord* G1PLABAllocator::allocate_direct_or_new_plab(InCSetState dest,
   271 HeapWord* G1PLABAllocator::allocate_direct_or_new_plab(InCSetState dest,
   272                                                        size_t word_sz,
   272                                                        size_t word_sz,
   273                                                        bool* plab_refill_failed) {
   273                                                        bool* plab_refill_failed) {
   274   size_t plab_word_size = G1CollectedHeap::heap()->desired_plab_sz(dest);
   274   size_t plab_word_size = _g1h->desired_plab_sz(dest);
   275   size_t required_in_plab = PLAB::size_required_for_allocation(word_sz);
   275   size_t required_in_plab = PLAB::size_required_for_allocation(word_sz);
   276 
   276 
   277   // Only get a new PLAB if the allocation fits and it would not waste more than
   277   // Only get a new PLAB if the allocation fits and it would not waste more than
   278   // ParallelGCBufferWastePct in the existing buffer.
   278   // ParallelGCBufferWastePct in the existing buffer.
   279   if ((required_in_plab <= plab_word_size) &&
   279   if ((required_in_plab <= plab_word_size) &&