< prev index next >

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

Print this page
rev 53864 : imported patch queue_access
rev 53867 : imported patch remove_shared_satb
rev 53868 : imported patch remove_shared_satb_lock

@@ -26,11 +26,11 @@
 #define SHARE_GC_SHARED_SATBMARKQUEUE_HPP
 
 #include "gc/shared/ptrQueue.hpp"
 #include "memory/allocation.hpp"
 
-class JavaThread;
+class Thread;
 class Monitor;
 class SATBMarkQueueSet;
 
 // Base class for processing the contents of a SATB buffer.
 class SATBBufferClosure : public StackObj {

@@ -90,11 +90,10 @@
   using PtrQueue::byte_width_of_active;
 
 };
 
 class SATBMarkQueueSet: public PtrQueueSet {
-  SATBMarkQueue _shared_satb_queue;
   size_t _buffer_enqueue_threshold;
 
 #ifdef ASSERT
   void dump_active_states(bool expected_active);
   void verify_active_states(bool expected_active);

@@ -110,15 +109,14 @@
   }
 
   void initialize(Monitor* cbl_mon,
                   BufferNode::Allocator* allocator,
                   size_t process_completed_buffers_threshold,
-                  uint buffer_enqueue_threshold_percentage,
-                  Mutex* lock);
+                  uint buffer_enqueue_threshold_percentage);
 
 public:
-  virtual SATBMarkQueue& satb_queue_for_thread(JavaThread* const t) const = 0;
+  virtual SATBMarkQueue& satb_queue_for_thread(Thread* const t) const = 0;
 
   // Apply "set_active(active)" to all SATB queues in the set. It should be
   // called only with the world stopped. The method will assert that the
   // SATB queues of all threads it visits, as well as the SATB queue
   // set itself, has an active value same as expected_active.

@@ -139,12 +137,10 @@
 #ifndef PRODUCT
   // Helpful for debugging
   void print_all(const char* msg);
 #endif // PRODUCT
 
-  SATBMarkQueue* shared_satb_queue() { return &_shared_satb_queue; }
-
   // If a marking is being abandoned, reset any unprocessed log buffers.
   void abandon_partial_marking();
 };
 
 inline void SATBMarkQueue::filter() {
< prev index next >