8152160: SIGFPE in CompactibleFreeListSpaceLAB::compute_desired_plab_size
Rephrase the calculation with CMSOldPLABNumRefills to avoid an overflow Reviewed-by: pliden, jmasa
This commit is contained in:
parent
d7e8dc2fef
commit
d676c6233e
@ -2536,7 +2536,7 @@ void CompactibleFreeListSpaceLAB::compute_desired_plab_size() {
|
|||||||
_blocks_to_claim[i].sample(
|
_blocks_to_claim[i].sample(
|
||||||
MAX2(CMSOldPLABMin,
|
MAX2(CMSOldPLABMin,
|
||||||
MIN2(CMSOldPLABMax,
|
MIN2(CMSOldPLABMax,
|
||||||
_global_num_blocks[i]/(_global_num_workers[i]*CMSOldPLABNumRefills))));
|
_global_num_blocks[i]/_global_num_workers[i]/CMSOldPLABNumRefills)));
|
||||||
}
|
}
|
||||||
// Reset counters for next round
|
// Reset counters for next round
|
||||||
_global_num_workers[i] = 0;
|
_global_num_workers[i] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user