src/hotspot/share/gc/g1/satbMarkQueue.hpp
changeset 51401 58113ce90caf
parent 51393 cc8d309cd05a
--- a/src/hotspot/share/gc/g1/satbMarkQueue.hpp	Tue Aug 14 10:08:21 2018 -0700
+++ b/src/hotspot/share/gc/g1/satbMarkQueue.hpp	Tue Aug 14 13:16:26 2018 -0400
@@ -92,6 +92,7 @@
 
 class SATBMarkQueueSet: public PtrQueueSet {
   SATBMarkQueue _shared_satb_queue;
+  size_t _buffer_enqueue_threshold;
 
 #ifdef ASSERT
   void dump_active_states(bool expected_active);
@@ -109,6 +110,7 @@
 
   void initialize(Monitor* cbl_mon, Mutex* fl_lock,
                   int process_completed_threshold,
+                  uint buffer_enqueue_threshold_percentage,
                   Mutex* lock);
 
 public:
@@ -120,6 +122,7 @@
   // set itself, has an active value same as expected_active.
   void set_active_all_threads(bool active, bool expected_active);
 
+  size_t buffer_enqueue_threshold() const { return _buffer_enqueue_threshold; }
   virtual void filter(SATBMarkQueue* queue) = 0;
 
   // Filter all the currently-active SATB buffers.