comparison 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
comparison
equal deleted inserted replaced
20755:01dcaba9b3f3 20756:060cdf93040c
60 // Initializes the buffer to be empty, but with the given "word_sz". 60 // Initializes the buffer to be empty, but with the given "word_sz".
61 // Must get initialized with "set_buf" for an allocation to succeed. 61 // Must get initialized with "set_buf" for an allocation to succeed.
62 ParGCAllocBuffer(size_t word_sz); 62 ParGCAllocBuffer(size_t word_sz);
63 63
64 static const size_t min_size() { 64 static const size_t min_size() {
65 return ThreadLocalAllocBuffer::min_size(); 65 // Make sure that we return something that is larger than AlignmentReserve
66 return align_object_size(MAX2(MinTLABSize / HeapWordSize, (uintx)oopDesc::header_size())) + AlignmentReserve;
66 } 67 }
67 68
68 static const size_t max_size() { 69 static const size_t max_size() {
69 return ThreadLocalAllocBuffer::max_size(); 70 return ThreadLocalAllocBuffer::max_size();
70 } 71 }