equal
deleted
inserted
replaced
2447 { |
2447 { |
2448 TraceTime tm("drain task setup", print_phases(), true, gclog_or_tty); |
2448 TraceTime tm("drain task setup", print_phases(), true, gclog_or_tty); |
2449 |
2449 |
2450 const unsigned int task_count = MAX2(parallel_gc_threads, 1U); |
2450 const unsigned int task_count = MAX2(parallel_gc_threads, 1U); |
2451 for (unsigned int j = 0; j < task_count; j++) { |
2451 for (unsigned int j = 0; j < task_count; j++) { |
2452 q->enqueue(new DrainStacksCompactionTask()); |
2452 q->enqueue(new DrainStacksCompactionTask(j)); |
2453 } |
2453 } |
2454 |
2454 |
2455 // Find all regions that are available (can be filled immediately) and |
2455 // Find all regions that are available (can be filled immediately) and |
2456 // distribute them to the thread stacks. The iteration is done in reverse |
2456 // distribute them to the thread stacks. The iteration is done in reverse |
2457 // order (high to low) so the regions will be removed in ascending order. |
2457 // order (high to low) so the regions will be removed in ascending order. |