src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp

changeset 7476
c2844108a708
parent 7031
ee019285a52c
parent 7470
060cdf93040c
child 7535
7ae4e26cb1e0
equal deleted inserted replaced
7264:8538a606a105 7476:c2844108a708
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 virtual ~ParGCAllocBuffer() {} 63 virtual ~ParGCAllocBuffer() {}
64 64
65 static const size_t min_size() { 65 static const size_t min_size() {
66 return ThreadLocalAllocBuffer::min_size(); 66 // Make sure that we return something that is larger than AlignmentReserve
67 return align_object_size(MAX2(MinTLABSize / HeapWordSize, (uintx)oopDesc::header_size())) + AlignmentReserve;
67 } 68 }
68 69
69 static const size_t max_size() { 70 static const size_t max_size() {
70 return ThreadLocalAllocBuffer::max_size(); 71 return ThreadLocalAllocBuffer::max_size();
71 } 72 }

mercurial