--- old/src/hotspot/share/gc/shared/plab.cpp 2019-11-14 15:57:41.370879216 +0100 +++ new/src/hotspot/share/gc/shared/plab.cpp 2019-11-14 15:57:41.023868136 +0100 @@ -135,7 +135,7 @@ // Calculates plab size for current number of gc worker threads. size_t PLABStats::desired_plab_sz(uint no_of_gc_workers) { - return align_object_size(MIN2(MAX2(min_size(), _desired_net_plab_sz / no_of_gc_workers), max_size())); + return align_object_size(clamp(_desired_net_plab_sz / no_of_gc_workers, min_size(), max_size())); } // Compute desired plab size for one gc worker thread and latch result for later