8153176: ParOldGC: Use correct TaskQueueSet for ParallelTaskTerminator in marking.
Reviewed-by: mgerdin, tschatzl
Contributed-by: richard.reingruber@sap.com
--- a/hotspot/src/share/vm/gc/parallel/pcTasks.cpp Tue Apr 05 12:10:03 2016 +0200
+++ b/hotspot/src/share/vm/gc/parallel/pcTasks.cpp Tue Apr 05 13:55:31 2016 +0200
@@ -167,7 +167,7 @@
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
uint parallel_gc_threads = heap->gc_task_manager()->workers();
uint active_gc_threads = heap->gc_task_manager()->active_workers();
- RegionTaskQueueSet* qset = ParCompactionManager::region_array();
+ OopTaskQueueSet* qset = ParCompactionManager::stack_array();
ParallelTaskTerminator terminator(active_gc_threads, qset);
GCTaskQueue* q = GCTaskQueue::create();
for(uint i=0; i<parallel_gc_threads; i++) {
--- a/hotspot/src/share/vm/gc/parallel/psParallelCompact.cpp Tue Apr 05 12:10:03 2016 +0200
+++ b/hotspot/src/share/vm/gc/parallel/psParallelCompact.cpp Tue Apr 05 13:55:31 2016 +0200
@@ -2048,7 +2048,7 @@
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
uint parallel_gc_threads = heap->gc_task_manager()->workers();
uint active_gc_threads = heap->gc_task_manager()->active_workers();
- TaskQueueSetSuper* qset = ParCompactionManager::region_array();
+ TaskQueueSetSuper* qset = ParCompactionManager::stack_array();
ParallelTaskTerminator terminator(active_gc_threads, qset);
ParCompactionManager::MarkAndPushClosure mark_and_push_closure(cm);