RFR (XS): 8015635: Crash when specifying very large code cache size

Albert Noll albert.noll at oracle.com
Fri Jun 28 00:38:58 PDT 2013


Hi Valdimir,

thanks again for looking at the code.
I implemented your proposed changes.

http://cr.openjdk.java.net/~anoll/8015635/webrev.02/ 
<http://cr.openjdk.java.net/%7Eanoll/8015635/webrev.02/>

Best,
Albert

On 28.06.2013 08:29, Vladimir Kozlov wrote:
> Albert,
>
> In the test could check the code after each java run? Example shows 
> only logic, not script instructions:
>
> java 2048m
> if $? -ne 0
>  failed
>  exit
> fi
>
> java 2049m
> if $? -eq 0
>  failed
>  exit
> fi
>
> passed
>
>
> Thanks,
> Vladimir
>
> On 6/27/13 10:14 PM, Albert Noll wrote:
>> Hi,
>>
>> Pavel, Vladimir, thanks for looking at the patch. I added a 
>> regression test and made the proposed changes in arguments.cpp.
>>
>> Here is the new webrev.
>> http://cr.openjdk.java.net/~anoll/8015635/webrev.01/ 
>> <http://cr.openjdk.java.net/%7Eanoll/8015635/webrev.01/>
>>
>> Thanks,
>> Albert
>>
>> On 27.06.2013 18:36, Vladimir Kozlov wrote:
>>> We don't place 'else' on separate line and remove comment inside 
>>> 'if' body and change it to:
>>>
>>> } else if (ReservedCodeCacheSize > 2*G) { {
>>>   // Code cache size larger than MAXINT is not supported.
>>>
>>> Thanks,
>>> Vladimir
>>>
>>> On 6/27/13 5:01 AM, Albert Noll wrote:
>>>> Hi,
>>>>
>>>> thanks for reviewing this small patch.
>>>>
>>>> Best,
>>>> Albert
>>>>
>>>> jbs: https://jbs.oracle.com/bugs/browse/JDK-8015635
>>>> webrev: http://cr.openjdk.java.net/~anoll/8015635/webrev/ 
>>>> <http://cr.openjdk.java.net/%7Eanoll/8015635/webrev/>
>>>>
>>>> Problem: A code cache size larger than 2G is not supported and 
>>>> therefore results in VM crashes.
>>>> Solution: Limit the size of the code cache to at most 2G when 
>>>> arguments are checked. If a larger code cache size is
>>>> specified with -XX:ReservedCodeCacheSize=..., the JVM does not 
>>>> start and reports an error.
>>>>
>>>>
>>>> Best,
>>>> Albert
>>>>
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20130628/dc70ff5a/attachment.html 


More information about the hotspot-compiler-dev mailing list