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

Print this page
rev 5363 : imported patch filtering.diff

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