RFR (XS) 8006851: When TieredCompilation is set, max code cache should be bumped to 256mb

Vladimir Kozlov vladimir.kozlov at oracle.com
Wed Feb 6 14:02:22 PST 2013


On 2/6/13 11:57 AM, Azeem Jiva wrote:
> After thinking about this, maybe setting initial code cache isn't all
> that necessary?  Really only FMW apps need that much code cache and not
> necessarily initially. We should let the code cache grow organically.

It is not only FMW. Long ago Igor pointed me a study outside Oracle 
which showed the best Tiered result with quadrupled default CodeCache 
size. So may be the fix in arguments.cpp should be:

-   FLAG_SET_DEFAULT(ReservedCodeCacheSize, ReservedCodeCacheSize * 2);
+   FLAG_SET_DEFAULT(ReservedCodeCacheSize, ReservedCodeCacheSize * 4);

Which gives 192Mb.

Vladimir

> Also you'll need a check to make sure that the user didn't set the code
> cache already, otherwise you are overriding their preferences :)
>
>
>
> On 2/6/2013 11:43 AM, Morris Meyer wrote:
>> Folks,
>>
>> I'd like to get this small change reviewed.  Per the workflow this has
>> gone through JPRT.
>>
>> Thanks in advance,
>>
>>         --morris
>>
>> JBS - https://jbs.oracle.com/bugs/browse/JDK-8006851
>> WEBREV - http://cr.openjdk.java.net/~morris/8006851
>


More information about the hotspot-compiler-dev mailing list