diff options
author | brutisso <none@none> | 2013-04-08 07:49:28 +0200 |
---|---|---|
committer | brutisso <none@none> | 2013-04-08 07:49:28 +0200 |
commit | 2e065efc9d19eb57f458cceae6bb2c0ede0cdaa9 (patch) | |
tree | 607c945baa45ffa4e7ee927c351efd77273194af /src/share/vm/utilities | |
parent | 22615c5c0755471705e76f7fbdc844ab2c0d6bc5 (diff) |
7197666: java -d64 -version core dumps in a box with lots of memory
Summary: Allow task queues to be mmapped instead of malloced on Solaris
Reviewed-by: coleenp, jmasa, johnc, tschatzl
Diffstat (limited to 'src/share/vm/utilities')
-rw-r--r-- | src/share/vm/utilities/taskqueue.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/share/vm/utilities/taskqueue.hpp b/src/share/vm/utilities/taskqueue.hpp index dd98186bb..980b7e973 100644 --- a/src/share/vm/utilities/taskqueue.hpp +++ b/src/share/vm/utilities/taskqueue.hpp @@ -253,6 +253,7 @@ public: 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 @@ GenericTaskQueue<E, F, N>::GenericTaskQueue() { 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> |