src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp
changeset 50882 80abf702eed8
parent 50866 cb4b07d61aac
child 51332 c25572739e7c
equal deleted inserted replaced
50881:a21cad3fa448 50882:80abf702eed8
   137   size_t refill_waste_limit() const              { return _refill_waste_limit; }
   137   size_t refill_waste_limit() const              { return _refill_waste_limit; }
   138   size_t bytes_since_last_sample_point() const   { return _bytes_since_last_sample_point; }
   138   size_t bytes_since_last_sample_point() const   { return _bytes_since_last_sample_point; }
   139 
   139 
   140   // Allocate size HeapWords. The memory is NOT initialized to zero.
   140   // Allocate size HeapWords. The memory is NOT initialized to zero.
   141   inline HeapWord* allocate(size_t size);
   141   inline HeapWord* allocate(size_t size);
   142   HeapWord* allocate_sampled_object(size_t size);
       
   143 
   142 
   144   // Reserve space at the end of TLAB
   143   // Reserve space at the end of TLAB
   145   static size_t end_reserve() {
   144   static size_t end_reserve() {
   146     int reserve_size = typeArrayOopDesc::header_size(T_INT);
   145     int reserve_size = typeArrayOopDesc::header_size(T_INT);
   147     return MAX2(reserve_size, _reserve_for_allocation_prefetch);
   146     return MAX2(reserve_size, _reserve_for_allocation_prefetch);