Mercurial > hg > graal-jvmci-8
diff src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp @ 20756:060cdf93040c jdk8u31-b04
8055479: TLAB stability
Reviewed-by: brutisso, stefank, ahgross
author | mgerdin |
---|---|
date | Thu, 09 Oct 2014 15:42:23 +0200 |
parents | cfd4aac53239 |
children | c2844108a708 |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp Fri Sep 26 17:48:10 2014 -0400 +++ b/src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp Thu Oct 09 15:42:23 2014 +0200 @@ -62,7 +62,8 @@ ParGCAllocBuffer(size_t word_sz); static const size_t min_size() { - return ThreadLocalAllocBuffer::min_size(); + // Make sure that we return something that is larger than AlignmentReserve + return align_object_size(MAX2(MinTLABSize / HeapWordSize, (uintx)oopDesc::header_size())) + AlignmentReserve; } static const size_t max_size() {