hotspot/src/share/vm/utilities/taskqueue.hpp
changeset 16682 4e30a46f6b76
parent 14292 7ee97c6fd7f1
child 18073 f02460441ddc
--- a/hotspot/src/share/vm/utilities/taskqueue.hpp	Mon Feb 11 10:31:56 2013 -0800
+++ b/hotspot/src/share/vm/utilities/taskqueue.hpp	Mon Apr 08 07:49:28 2013 +0200
@@ -253,6 +253,7 @@
 
 template <class E, MEMFLAGS F, unsigned int N = TASKQUEUE_SIZE>
 class GenericTaskQueue: public TaskQueueSuper<N, F> {
+  ArrayAllocator<E, F> _array_allocator;
 protected:
   typedef typename TaskQueueSuper<N, F>::Age Age;
   typedef typename TaskQueueSuper<N, F>::idx_t idx_t;
@@ -314,7 +315,7 @@
 
 template<class E, MEMFLAGS F, unsigned int N>
 void GenericTaskQueue<E, F, N>::initialize() {
-  _elems = NEW_C_HEAP_ARRAY(E, N, F);
+  _elems = _array_allocator.allocate(N);
 }
 
 template<class E, MEMFLAGS F, unsigned int N>