--- old/src/hotspot/share/gc/g1/g1Allocator.cpp 2018-03-29 19:40:13.180144038 +0200 +++ new/src/hotspot/share/gc/g1/g1Allocator.cpp 2018-03-29 19:40:12.926136251 +0200 @@ -237,7 +237,7 @@ 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