--- 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.