mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-20 18:37:51 +00:00
Merge
This commit is contained in:
commit
a0734684c5
@ -2511,7 +2511,11 @@ void CFLS_LAB::get_from_global_pool(size_t word_sz, AdaptiveFreeList<FreeChunk>*
|
||||
// Lacking sufficient experience, CMSOldPLABResizeQuicker is disabled by
|
||||
// default.
|
||||
if (ResizeOldPLAB && CMSOldPLABResizeQuicker) {
|
||||
size_t multiple = _num_blocks[word_sz]/(CMSOldPLABToleranceFactor*CMSOldPLABNumRefills*n_blks);
|
||||
//
|
||||
// On a 32-bit VM, the denominator can become zero because of integer overflow,
|
||||
// which is why there is a cast to double.
|
||||
//
|
||||
size_t multiple = (size_t) (_num_blocks[word_sz]/(((double)CMSOldPLABToleranceFactor)*CMSOldPLABNumRefills*n_blks));
|
||||
n_blks += CMSOldPLABReactivityFactor*multiple*n_blks;
|
||||
n_blks = MIN2(n_blks, CMSOldPLABMax);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user