< prev index next >

src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp

Print this page
rev 47590 : [mq]: heap8
rev 47592 : [mq]: heap14_rebased

@@ -91,10 +91,14 @@
   static int    target_refills()                 { return _target_refills; }
   size_t initial_desired_size();
 
   size_t remaining()                             { return end() == NULL ? 0 : pointer_delta(hard_end(), top()); }
 
+  // Obtain the actual end of the TLAB.
+  HeapWord* hard_end();
+  void set_sample_end();
+
   // Make parsable and release it.
   void reset();
 
   // Resize based on amount of allocation, etc.
   void resize();

@@ -128,13 +132,10 @@
   static size_t max_size_in_bytes()              { return max_size() * BytesPerWord; }
   static void set_max_size(size_t max_size)      { _max_size = max_size; }
 
   HeapWord* start() const                        { return _start; }
   HeapWord* end() const                          { return _end; }
-  HeapWord* slow_path_end() const                { return _slow_path_end; }
-  HeapWord* actual_end() const                   { return _actual_end; }
-  HeapWord* hard_end();
   HeapWord* top() const                          { return _top; }
   HeapWord* pf_top() const                       { return _pf_top; }
   size_t desired_size() const                    { return _desired_size; }
   size_t used() const                            { return pointer_delta(top(), start()); }
   size_t used_bytes() const                      { return pointer_delta(top(), start(), 1); }

@@ -178,23 +179,19 @@
 
   void fill(HeapWord* start, HeapWord* top, size_t new_size);
   void initialize();
 
   void pick_next_sample(size_t diff = 0);
-  void set_sample_end();
   void set_back_actual_end();
   void handle_sample(Thread* thread, HeapWord* result, size_t size);
-  size_t bytes_until_sample() { return _bytes_until_sample; }
-  size_t *bytes_until_sample_addr() { return &_bytes_until_sample; }
-  bool should_sample() { return bytes_until_sample() == 0; }
+  bool should_sample() { return _bytes_until_sample == 0; }
 
   static size_t refill_waste_limit_increment()   { return TLABWasteIncrement; }
 
   // Code generation support
   static ByteSize start_offset()                 { return byte_offset_of(ThreadLocalAllocBuffer, _start); }
   static ByteSize end_offset()                   { return byte_offset_of(ThreadLocalAllocBuffer, _end  ); }
-  static ByteSize actual_end_offset()            { return byte_offset_of(ThreadLocalAllocBuffer, _actual_end  ); }
   static ByteSize top_offset()                   { return byte_offset_of(ThreadLocalAllocBuffer, _top  ); }
   static ByteSize pf_top_offset()                { return byte_offset_of(ThreadLocalAllocBuffer, _pf_top  ); }
   static ByteSize size_offset()                  { return byte_offset_of(ThreadLocalAllocBuffer, _desired_size ); }
   static ByteSize refill_waste_limit_offset()    { return byte_offset_of(ThreadLocalAllocBuffer, _refill_waste_limit ); }
 
< prev index next >