< prev index next >

src/hotspot/share/gc/g1/dirtyCardQueue.hpp

Print this page
rev 53150 : [mq]: use_semaphore
rev 53151 : [mq]: tschatzl_review

@@ -26,12 +26,12 @@
 #define SHARE_VM_GC_G1_DIRTYCARDQUEUE_HPP
 
 #include "gc/shared/ptrQueue.hpp"
 #include "memory/allocation.hpp"
 
-class FreeIdSet;
 class DirtyCardQueueSet;
+class G1FreeIdSet;
 class JavaThread;
 class Monitor;
 
 // A closure class for processing card table entries.  Note that we don't
 // require these closure objects to be stack-allocated.

@@ -101,12 +101,11 @@
                                          size_t stop_at,
                                          bool during_pause);
 
   bool mut_process_buffer(BufferNode* node);
 
-  // Protected by the _cbl_mon.
-  FreeIdSet* _free_ids;
+  G1FreeIdSet* _free_ids;
 
   // The number of completed buffers processed by mutator and rs thread,
   // respectively.
   jint _processed_buffers_mut;
   jint _processed_buffers_rs_thread;

@@ -116,10 +115,11 @@
 
   void concatenate_log(DirtyCardQueue& dcq);
 
 public:
   DirtyCardQueueSet(bool notify_when_complete = true);
+  ~DirtyCardQueueSet();
 
   void initialize(Monitor* cbl_mon,
                   BufferNode::Allocator* allocator,
                   Mutex* lock,
                   bool init_free_ids = false);
< prev index next >