mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
7197666: java -d64 -version core dumps in a box with lots of memory
Allow task queues to be mmapped instead of malloced on Solaris Reviewed-by: coleenp, jmasa, johnc, tschatzl
This commit is contained in:
parent
fabb8c6e25
commit
4a685f181b
4 changed files with 72 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue