comparison src/share/vm/memory/threadLocalAllocBuffer.hpp @ 21811:22ac20a25842

8055479: TLAB stability Reviewed-by: brutisso, stefank, ahgross
author mgerdin
date Thu, 09 Oct 2014 15:42:23 +0200
parents cfd4aac53239
children 7848fc12602b
comparison
equal deleted inserted replaced
21810:0366a71eda74 21811:22ac20a25842
103 public: 103 public:
104 ThreadLocalAllocBuffer() : _allocation_fraction(TLABAllocationWeight), _allocated_before_last_gc(0) { 104 ThreadLocalAllocBuffer() : _allocation_fraction(TLABAllocationWeight), _allocated_before_last_gc(0) {
105 // do nothing. tlabs must be inited by initialize() calls 105 // do nothing. tlabs must be inited by initialize() calls
106 } 106 }
107 107
108 static const size_t min_size() { return align_object_size(MinTLABSize / HeapWordSize); } 108 static const size_t min_size() { return align_object_size(MinTLABSize / HeapWordSize) + alignment_reserve(); }
109 static const size_t max_size() { assert(_max_size != 0, "max_size not set up"); return _max_size; } 109 static const size_t max_size() { assert(_max_size != 0, "max_size not set up"); return _max_size; }
110 static void set_max_size(size_t max_size) { _max_size = max_size; } 110 static void set_max_size(size_t max_size) { _max_size = max_size; }
111 111
112 HeapWord* start() const { return _start; } 112 HeapWord* start() const { return _start; }
113 HeapWord* end() const { return _end; } 113 HeapWord* end() const { return _end; }