changeset 50606:c036b84c6bbf

8202662: JFR tests fails: Could not find leak with class Reviewed-by: pliden, kbarrett
author sjohanss
date Wed, 09 May 2018 11:24:12 +0200
parents c5341d61506f
children 758deedaae84
files src/hotspot/share/gc/shared/threadLocalAllocBuffer.inline.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.inline.hpp	Wed May 09 12:19:35 2018 +0300
+++ b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.inline.hpp	Wed May 09 11:24:12 2018 +0200
@@ -76,7 +76,7 @@
 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) {