RFR(XS): 8153835: Fix range of flag MaxDirectMemorySize which is parsed at jlong.
Gerard Ziemski
gerard.ziemski at oracle.com
Wed Apr 13 16:30:16 UTC 2016
hi Goetz,
How about if we just change the MaxDirectMemorySize type to uint64_t, like so:
http://cr.openjdk.java.net/~gziemski/8153835_rev1/
cheers
> On Apr 13, 2016, at 8:25 AM, Lindenmaier, Goetz <goetz.lindenmaier at sap.com> wrote:
>
> Hi,
>
> could someone please have a look at this tiny issue? And sponsor?
>
> Thanks,
> Goetz.
>
>> -----Original Message-----
>> From: Lindenmaier, Goetz
>> Sent: Freitag, 8. April 2016 10:53
>> To: hotspot-runtime-dev at openjdk.java.net
>> Subject: RFR(XS): 8153835: Fix range of flag MaxDirectMemorySize which is
>> parsed at jlong.
>>
>> Hi,
>>
>>
>>
>> The upper limit of the range for flag MaxDirectMemorySize is MAX_SIZE_T.
>>
>> The flag is used to set a property that is parsed into a long. Thus, the max
>>
>> value on 64-bit platforms is too large.
>>
>> Fix: Limit the range to max_jlong, too.
>>
>>
>>
>> Please review this change. I please need a sponsor.
>>
>> http://cr.openjdk.java.net/~goetz/wr16/8153835-MaxDMSz/webrev.01/
>>
>>
>>
>> Best regards,
>>
>> Goetz.
>>
>>
>>
>>
>
More information about the hotspot-runtime-dev
mailing list