equal
deleted
inserted
replaced
104 public: |
104 public: |
105 ThreadLocalAllocBuffer() : _allocation_fraction(TLABAllocationWeight), _allocated_before_last_gc(0) { |
105 ThreadLocalAllocBuffer() : _allocation_fraction(TLABAllocationWeight), _allocated_before_last_gc(0) { |
106 // do nothing. tlabs must be inited by initialize() calls |
106 // do nothing. tlabs must be inited by initialize() calls |
107 } |
107 } |
108 |
108 |
109 static const size_t min_size() { return align_object_size(MinTLABSize / HeapWordSize); } |
109 static const size_t min_size() { return align_object_size(MinTLABSize / HeapWordSize) + alignment_reserve(); } |
110 static const size_t max_size() { assert(_max_size != 0, "max_size not set up"); return _max_size; } |
110 static const size_t max_size() { assert(_max_size != 0, "max_size not set up"); return _max_size; } |
111 static void set_max_size(size_t max_size) { _max_size = max_size; } |
111 static void set_max_size(size_t max_size) { _max_size = max_size; } |
112 |
112 |
113 HeapWord* start() const { return _start; } |
113 HeapWord* start() const { return _start; } |
114 HeapWord* end() const { return _end; } |
114 HeapWord* end() const { return _end; } |