< prev index next >

src/hotspot/share/gc/epsilon/epsilonHeap.cpp

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

@@ -210,11 +210,11 @@
       size = (size_t) (ergo_tlab * EpsilonTLABElasticity);
     }
   }
 
   // Always honor boundaries
-  size = MAX2(min_size, MIN2(_max_tlab_size, size));
+  size = clamp(size, min_size, _max_tlab_size);
 
   // Always honor alignment
   size = align_up(size, MinObjAlignment);
 
   // Check that adjustments did not break local and global invariants
< prev index next >