hotspot/src/share/vm/gc/shared/taskqueue.hpp
changeset 31994 3721b7aa3a0d
parent 30878 f1702744b3a4
child 37057 03b3e1870228
--- a/hotspot/src/share/vm/gc/shared/taskqueue.hpp	Mon Jul 27 18:23:35 2015 +0300
+++ b/hotspot/src/share/vm/gc/shared/taskqueue.hpp	Mon Jul 27 14:05:55 2015 -0400
@@ -295,8 +295,9 @@
   // Delete any resource associated with the queue.
   ~GenericTaskQueue();
 
-  // apply the closure to all elements in the task queue
-  void oops_do(OopClosure* f);
+  // Apply fn to each element in the task queue.  The queue must not
+  // be modified while iterating.
+  template<typename Fn> void iterate(Fn fn);
 
 private:
   // Element array.