mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-29 00:02:34 +00:00
8383462: G1: scan_root_regions should guarantee that the number of workers is nonzero
Reviewed-by: stefank
This commit is contained in:
parent
7c1f89e411
commit
9993593689
@ -1149,7 +1149,7 @@ bool G1ConcurrentMark::scan_root_regions(WorkerThreads* workers, bool concurrent
|
||||
// completing this work during GC.
|
||||
const uint num_workers = MIN2(num_remaining,
|
||||
_max_concurrent_workers);
|
||||
assert(num_workers > 0, "no more remaining root regions to process");
|
||||
guarantee(num_workers > 0, "no more remaining root regions to process");
|
||||
|
||||
G1CMRootRegionScanTask task(this, concurrent);
|
||||
log_debug(gc, ergo)("Running %s using %u workers for %u work units.",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user