src/share/vm/gc_implementation/g1/ptrQueue.hpp

Print this page
rev 4974 : imported patch conditional-storeload-young.diff

@@ -78,10 +78,14 @@
   void set_lock(Mutex* lock) { _lock = lock; }
 
   void reset() { if (_buf != NULL) _index = _sz; }
 
   // Enqueues the given "obj".
+  void enqueue(volatile void* ptr) {
+    enqueue(const_cast<void*>(ptr));
+  }
+
   void enqueue(void* ptr) {
     if (!_active) return;
     else enqueue_known_active(ptr);
   }