1.1 --- a/src/share/vm/utilities/taskqueue.hpp Mon Feb 11 10:31:56 2013 -0800 1.2 +++ b/src/share/vm/utilities/taskqueue.hpp Mon Apr 08 07:49:28 2013 +0200 1.3 @@ -253,6 +253,7 @@ 1.4 1.5 template <class E, MEMFLAGS F, unsigned int N = TASKQUEUE_SIZE> 1.6 class GenericTaskQueue: public TaskQueueSuper<N, F> { 1.7 + ArrayAllocator<E, F> _array_allocator; 1.8 protected: 1.9 typedef typename TaskQueueSuper<N, F>::Age Age; 1.10 typedef typename TaskQueueSuper<N, F>::idx_t idx_t; 1.11 @@ -314,7 +315,7 @@ 1.12 1.13 template<class E, MEMFLAGS F, unsigned int N> 1.14 void GenericTaskQueue<E, F, N>::initialize() { 1.15 - _elems = NEW_C_HEAP_ARRAY(E, N, F); 1.16 + _elems = _array_allocator.allocate(N); 1.17 } 1.18 1.19 template<class E, MEMFLAGS F, unsigned int N>