8153176: ParOldGC: Use correct TaskQueueSet for ParallelTaskTerminator in marking.
authormgerdin
Tue, 05 Apr 2016 13:55:31 +0200
changeset 37260 664b7520c44b
parent 37259 f107e004af65
child 37261 659ed5b20b48
8153176: ParOldGC: Use correct TaskQueueSet for ParallelTaskTerminator in marking. Reviewed-by: mgerdin, tschatzl Contributed-by: richard.reingruber@sap.com
hotspot/src/share/vm/gc/parallel/pcTasks.cpp
hotspot/src/share/vm/gc/parallel/psParallelCompact.cpp
--- 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);