Mercurial > hg > graal-compiler
diff src/share/vm/memory/threadLocalAllocBuffer.hpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 1e1c8d358b52 |
children | f1d1ec9bcf24 |
line wrap: on
line diff
--- a/src/share/vm/memory/threadLocalAllocBuffer.hpp Tue Apr 01 14:09:03 2014 +0200 +++ b/src/share/vm/memory/threadLocalAllocBuffer.hpp Tue Apr 01 13:57:07 2014 +0200 @@ -45,9 +45,7 @@ HeapWord* _end; // allocation end (excluding alignment_reserve) size_t _desired_size; // desired size (including alignment_reserve) size_t _refill_waste_limit; // hold onto tlab if free() is larger than this - size_t _allocated_before_last_gc; // total bytes allocated up until the last gc - static size_t _max_size; // maximum size of any TLAB static unsigned _target_refills; // expected number of refills between GCs unsigned _number_of_refills; @@ -101,13 +99,12 @@ static GlobalTLABStats* global_stats() { return _global_stats; } public: - ThreadLocalAllocBuffer() : _allocation_fraction(TLABAllocationWeight), _allocated_before_last_gc(0) { + ThreadLocalAllocBuffer() : _allocation_fraction(TLABAllocationWeight) { // do nothing. tlabs must be inited by initialize() calls } static const size_t min_size() { return align_object_size(MinTLABSize / HeapWordSize); } - static const size_t max_size() { assert(_max_size != 0, "max_size not set up"); return _max_size; } - static void set_max_size(size_t max_size) { _max_size = max_size; } + static const size_t max_size(); HeapWord* start() const { return _start; } HeapWord* end() const { return _end; }