equal
deleted
inserted
replaced
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) && |