--- old/src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp 2018-04-23 13:45:39.672745867 +0200 +++ new/src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp 2018-04-23 13:45:39.328732296 +0200 @@ -141,6 +141,9 @@ // Otherwise return 0; inline size_t compute_size(size_t obj_size); + // Compute the minimal needed tlab size for the given object size. + static inline size_t compute_min_size(size_t obj_size); + // Record slow allocation inline void record_slow_allocation(size_t obj_size);