< prev index next >

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

Print this page
rev 53608 : TLAB fast refill cleanup

@@ -60,12 +60,11 @@
   static size_t   _max_size;                          // maximum size of any TLAB
   static int      _reserve_for_allocation_prefetch;   // Reserve at the end of the TLAB
   static unsigned _target_refills;                    // expected number of refills between GCs
 
   unsigned  _number_of_refills;
-  unsigned  _fast_refill_waste;
-  unsigned  _slow_refill_waste;
+  unsigned  _refill_waste;
   unsigned  _gc_waste;
   unsigned  _slow_allocations;
   size_t    _allocated_size;
 
   AdaptiveWeightedAverage _allocation_fraction;  // fraction of eden allocated in tlabs

@@ -99,19 +98,10 @@
   void accumulate_and_reset_statistics(ThreadLocalAllocStats* stats);
 
   void print_stats(const char* tag);
 
   Thread* thread();
-
-  // statistics
-
-  int number_of_refills() const { return _number_of_refills; }
-  int fast_refill_waste() const { return _fast_refill_waste; }
-  int slow_refill_waste() const { return _slow_refill_waste; }
-  int gc_waste() const          { return _gc_waste; }
-  int slow_allocations() const  { return _slow_allocations; }
-
 public:
   ThreadLocalAllocBuffer() : _allocated_before_last_gc(0), _allocation_fraction(TLABAllocationWeight) {
     // do nothing.  tlabs must be inited by initialize() calls
   }
 

@@ -196,14 +186,12 @@
   static PerfVariable* _perf_total_refills;
   static PerfVariable* _perf_max_refills;
   static PerfVariable* _perf_total_allocations;
   static PerfVariable* _perf_total_gc_waste;
   static PerfVariable* _perf_max_gc_waste;
-  static PerfVariable* _perf_total_slow_refill_waste;
-  static PerfVariable* _perf_max_slow_refill_waste;
-  static PerfVariable* _perf_total_fast_refill_waste;
-  static PerfVariable* _perf_max_fast_refill_waste;
+  static PerfVariable* _perf_total_refill_waste;
+  static PerfVariable* _perf_max_refill_waste;
   static PerfVariable* _perf_total_slow_allocations;
   static PerfVariable* _perf_max_slow_allocations;
 
   static AdaptiveWeightedAverage _allocating_threads_avg;
 

@@ -211,14 +199,12 @@
   unsigned int _total_refills;
   unsigned int _max_refills;
   size_t       _total_allocations;
   size_t       _total_gc_waste;
   size_t       _max_gc_waste;
-  size_t       _total_fast_refill_waste;
-  size_t       _max_fast_refill_waste;
-  size_t       _total_slow_refill_waste;
-  size_t       _max_slow_refill_waste;
+  size_t       _total_refill_waste;
+  size_t       _max_refill_waste;
   unsigned int _total_slow_allocations;
   unsigned int _max_slow_allocations;
 
 public:
   static void initialize();

@@ -227,12 +213,11 @@
   ThreadLocalAllocStats();
 
   void update_fast_allocations(unsigned int refills,
                                size_t allocations,
                                size_t gc_waste,
-                               size_t fast_refill_waste,
-                               size_t slow_refill_waste);
+                               size_t refill_waste);
   void update_slow_allocations(unsigned int allocations);
   void update(const ThreadLocalAllocStats& other);
 
   void reset();
   void publish();
< prev index next >