8202662: JFR tests fails: Could not find leak with class

Reviewed-by: pliden, kbarrett
This commit is contained in:
Stefan Johansson 2018-05-09 11:24:12 +02:00
parent 2ee56fd1cf
commit 816d8f4257

View file

@ -76,7 +76,7 @@ inline size_t ThreadLocalAllocBuffer::compute_size(size_t obj_size) {
inline size_t ThreadLocalAllocBuffer::compute_min_size(size_t obj_size) {
const size_t aligned_obj_size = align_object_size(obj_size);
const size_t size_with_reserve = aligned_obj_size + alignment_reserve();
return MAX2(size_with_reserve, MinTLABSize);
return MAX2(size_with_reserve, heap_word_size(MinTLABSize));
}
void ThreadLocalAllocBuffer::record_slow_allocation(size_t obj_size) {