< prev index next >

src/hotspot/share/gc/shared/plab.cpp

Print this page
rev 56944 : imported patch 8233702-function-to-clamp-value-to-range

*** 133,143 **** net_desired_words * HeapWordSize); } // 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())); } // Compute desired plab size for one gc worker thread and latch result for later // use. This should be called once at the end of parallel // scavenge; it clears the sensor accumulators. --- 133,143 ---- net_desired_words * HeapWordSize); } // 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(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 // use. This should be called once at the end of parallel // scavenge; it clears the sensor accumulators.
< prev index next >