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 } |