8202662: JFR tests fails: Could not find leak with class
authorsjohanss
Wed, 09 May 2018 11:24:12 +0200
changeset 50070 c036b84c6bbf
parent 50069 c5341d61506f
child 50071 758deedaae84
8202662: JFR tests fails: Could not find leak with class Reviewed-by: pliden, kbarrett
src/hotspot/share/gc/shared/threadLocalAllocBuffer.inline.hpp
--- 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) {