--- a/src/hotspot/share/gc/shared/plab.cpp Fri Nov 22 10:03:38 2019 +0100
+++ b/src/hotspot/share/gc/shared/plab.cpp Fri Nov 22 10:03:38 2019 +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