RFR (XXS) JDK-8139768 Running with -XX:CMSOldPLABNumRefills=2147483648 causes EXCEPTION_INT_DIVIDE_BY_ZERO on Windows i586
Jesper Wilhelmsson
jesper.wilhelmsson at oracle.com
Thu Dec 10 22:00:15 UTC 2015
Looks good!
/Jesper
Den 10/12/15 kl. 19:44, skrev Joseph Provino:
> Updated webrev: http://cr.openjdk.java.net/~jprovino/8139768/webrev.01
>
>
>
> On 12/9/2015 2:51 PM, Stefan Karlsson wrote:
>> Hi Joe,
>>
>> On 2015-12-09 19:30, Joseph Provino wrote:
>>> Please review this very small change.
>>>
>>> CR: https://bugs.openjdk.java.net/browse/JDK-8139768
>>>
>>> Webrev: http://cr.openjdk.java.net/~jprovino/8139768/webrev.00
>>
>> The rest of the file uses // for the comments. Could you change your comment
>> to be consistent with the rest of the file?
>>
>> // 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 before of integer overflow
>> + * which is why there is cast to double.
>> + */
>> + size_t multiple = (size_t) (_num_blocks[word_sz]/((double)CMSOldPLABToleranceFactor*CMSOldPLABNumRefills*n_blks));
>>
>> Thanks,
>> StefanK
>>>
>>> thanks.
>>>
>>> joe
>>
>
More information about the hotspot-gc-dev
mailing list