src/share/vm/gc_implementation/g1/g1StringDedupQueue.cpp

Print this page

        

*** 36,46 **** G1StringDedupQueue::G1StringDedupQueue() : _cursor(0), _cancel(false), _empty(true), _dropped(0) { ! _nqueues = MAX2(ParallelGCThreads, (size_t)1); _queues = NEW_C_HEAP_ARRAY(G1StringDedupWorkerQueue, _nqueues, mtGC); for (size_t i = 0; i < _nqueues; i++) { new (_queues + i) G1StringDedupWorkerQueue(G1StringDedupWorkerQueue::default_segment_size(), _max_cache_size, _max_size); } } --- 36,46 ---- G1StringDedupQueue::G1StringDedupQueue() : _cursor(0), _cancel(false), _empty(true), _dropped(0) { ! _nqueues = MAX2(ParallelGCThreads, (uintx)1); _queues = NEW_C_HEAP_ARRAY(G1StringDedupWorkerQueue, _nqueues, mtGC); for (size_t i = 0; i < _nqueues; i++) { new (_queues + i) G1StringDedupWorkerQueue(G1StringDedupWorkerQueue::default_segment_size(), _max_cache_size, _max_size); } }