src/share/vm/gc_implementation/g1/satbQueue.cpp

Print this page
rev 7653 : 8068883: Remove disabling of warning "C4355: 'this' : used in base member initializer list"

@@ -195,17 +195,14 @@
            "Not an oop");
   }
 }
 #endif
 
-#ifdef _MSC_VER // the use of 'this' below gets a warning, make it go away
-#pragma warning( disable:4355 ) // 'this' : used in base member initializer list
-#endif // _MSC_VER
-
 SATBMarkQueueSet::SATBMarkQueueSet() :
-  PtrQueueSet(), _closures(NULL),
-  _shared_satb_queue(this, true /*perm*/) { }
+  PtrQueueSet(), _closures(NULL) {
+  _shared_satb_queue = ObjPtrQueue(this, true /*perm*/);
+}
 
 void SATBMarkQueueSet::initialize(Monitor* cbl_mon, Mutex* fl_lock,
                                   int process_completed_threshold,
                                   Mutex* lock) {
   PtrQueueSet::initialize(cbl_mon, fl_lock, process_completed_threshold, -1);