< prev index next >

src/hotspot/share/gc/g1/g1Allocator.cpp

Print this page
rev 49524 : imported patch 8200426-g1h-refactoring

@@ -235,11 +235,11 @@
 }
 
 HeapWord* G1PLABAllocator::allocate_direct_or_new_plab(InCSetState dest,
                                                        size_t word_sz,
                                                        bool* plab_refill_failed) {
-  size_t plab_word_size = G1CollectedHeap::heap()->desired_plab_sz(dest);
+  size_t plab_word_size = _g1h->desired_plab_sz(dest);
   size_t required_in_plab = PLAB::size_required_for_allocation(word_sz);
 
   // Only get a new PLAB if the allocation fits and it would not waste more than
   // ParallelGCBufferWastePct in the existing buffer.
   if ((required_in_plab <= plab_word_size) &&
< prev index next >