hotspot/src/share/vm/memory/threadLocalAllocBuffer.hpp
changeset 28511 3de39f0478f8
parent 25715 d5a8dbdc5150
equal deleted inserted replaced
28510:4f1d3611e0bc 28511:3de39f0478f8
   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; }