mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6978300: G1: debug builds crash if ParallelGCThreads==0
Reviewed-by: tonyp, ysr
This commit is contained in:
parent
1456a4c423
commit
be6d973a49
1 changed files with 2 additions and 2 deletions
|
@ -2753,7 +2753,7 @@ void G1CollectedHeap::print_taskqueue_stats(outputStream* const st) const {
|
|||
print_taskqueue_stats_hdr(st);
|
||||
|
||||
TaskQueueStats totals;
|
||||
const int n = MAX2(workers()->total_workers(), 1);
|
||||
const int n = workers() != NULL ? workers()->total_workers() : 1;
|
||||
for (int i = 0; i < n; ++i) {
|
||||
st->print("%3d ", i); task_queue(i)->stats.print(st); st->cr();
|
||||
totals += task_queue(i)->stats;
|
||||
|
@ -2764,7 +2764,7 @@ void G1CollectedHeap::print_taskqueue_stats(outputStream* const st) const {
|
|||
}
|
||||
|
||||
void G1CollectedHeap::reset_taskqueue_stats() {
|
||||
const int n = MAX2(workers()->total_workers(), 1);
|
||||
const int n = workers() != NULL ? workers()->total_workers() : 1;
|
||||
for (int i = 0; i < n; ++i) {
|
||||
task_queue(i)->stats.reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue