mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-25 15:20:11 +00:00
8277985: G1: Compare max_parallel_refinement_threads to UINT_MAX
Reviewed-by: kbarrett, tschatzl
This commit is contained in:
parent
dc2abc9f05
commit
7c4ef3abaf
@ -243,7 +243,7 @@ void G1Arguments::initialize() {
|
||||
// the refcount in G1CardSetContainer.
|
||||
uint max_parallel_refinement_threads = G1ConcRefinementThreads + G1DirtyCardQueueSet::num_par_ids();
|
||||
uint const divisor = 3; // Safe divisor; we increment by 2 for each claim, but there is a small initial value.
|
||||
if (max_parallel_refinement_threads > UINTPTR_MAX / divisor) {
|
||||
if (max_parallel_refinement_threads > UINT_MAX / divisor) {
|
||||
vm_exit_during_initialization("Too large parallelism for remembered sets.");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user