< prev index next >
src/share/vm/gc/shared/taskqueue.inline.hpp
Print this page
rev 13100 : imported patch 8182169-arrayallocator-should-take-memflag-parameter
@@ -42,17 +42,17 @@
}
}
template<class E, MEMFLAGS F, unsigned int N>
inline void GenericTaskQueue<E, F, N>::initialize() {
- _elems = ArrayAllocator<E, F>::allocate(N);
+ _elems = ArrayAllocator<E>::allocate(N, F);
}
template<class E, MEMFLAGS F, unsigned int N>
inline GenericTaskQueue<E, F, N>::~GenericTaskQueue() {
assert(false, "This code is currently never called");
- ArrayAllocator<E, F>::free(const_cast<E*>(_elems), N);
+ ArrayAllocator<E>::free(const_cast<E*>(_elems), N);
}
template<class E, MEMFLAGS F, unsigned int N>
bool GenericTaskQueue<E, F, N>::push_slow(E t, uint dirty_n_elems) {
if (dirty_n_elems == N - 1) {
< prev index next >