RFR(S): 8159620: -XX:-UseOnStackReplacement does not work together with -XX:+TieredCompilation on ppc64 and sparc

Tobias Hartmann tobias.hartmann at oracle.com
Mon Jun 20 08:59:36 UTC 2016


Hi Volker,

On 20.06.2016 10:52, Volker Simonis wrote:
> Hi Tobias,
> 
> thanks for sponsoring! I've uploaded a new webrev with you and
> Vladimir as reviewers:
> 
> http://cr.openjdk.java.net/~simonis/webrevs/2016/8159620.v2/
> 
> You can find the changeset there:
> 
> http://cr.openjdk.java.net/~simonis/webrevs/2016/8159620.v2/hotspot.changeset

Thanks, I just noticed that the test has

26  * @bug 9999999

You can fix this in-place. I'll then run the required pre-integration testing (~24h) and push your change afterwards.

Best regards,
Tobias

> 
> Thanks,
> Volker
> 
> 
> On Mon, Jun 20, 2016 at 10:46 AM, Tobias Hartmann
> <tobias.hartmann at oracle.com> wrote:
>> Hi Volker,
>>
>> you fix looks good to me! I can do the sponsoring, please just send me a changeset.
>>
>> Best regards,
>> Tobias
>>
>> On 20.06.2016 10:16, Volker Simonis wrote:
>>> Thanks Vladimir!
>>>
>>> .. I still need a sponsor :(
>>>
>>> Regards,
>>> Volker
>>>
>>>
>>> On Fri, Jun 17, 2016 at 10:53 PM, Vladimir Kozlov
>>> <vladimir.kozlov at oracle.com> wrote:
>>>> Looks good.
>>>>
>>>> Thanks,
>>>> Vladimir
>>>>
>>>>
>>>> On 6/17/16 2:22 AM, Volker Simonis wrote:
>>>>>
>>>>> Hi Goetz,
>>>>>
>>>>> thanks for the review.
>>>>> You're right, I've fixed the "else":
>>>>>
>>>>> http://cr.openjdk.java.net/~simonis/webrevs/2016/8159620.v1/
>>>>>
>>>>> Regards,
>>>>> Volker
>>>>>
>>>>> On Fri, Jun 17, 2016 at 11:08 AM, Lindenmaier, Goetz
>>>>> <goetz.lindenmaier at sap.com> wrote:
>>>>>>
>>>>>> Hi Volker,
>>>>>>
>>>>>> thanks for doing this fix, I also have run into this issue before ...
>>>>>> Looks good.
>>>>>>
>>>>>> Small nit: usually
>>>>>>   }
>>>>>>   else {
>>>>>> are on one line.
>>>>>>
>>>>>> Best regards,
>>>>>>   Goetz.
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: hotspot-dev [mailto:hotspot-dev-bounces at openjdk.java.net] On
>>>>>>> Behalf Of Volker Simonis
>>>>>>> Sent: Donnerstag, 16. Juni 2016 16:54
>>>>>>> To: HotSpot Open Source Developers <hotspot-dev at openjdk.java.net>
>>>>>>> Subject: RFR(S): 8159620: -XX:-UseOnStackReplacement does not work
>>>>>>> together with -XX:+TieredCompilation on ppc64 and sparc
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> can I please have a review and sponsor for the following small change
>>>>>>> which fixes -XX:-UseOnStackReplacement to work together with
>>>>>>> -XX:+TieredCompilation:
>>>>>>>
>>>>>>> http://cr.openjdk.java.net/~simonis/webrevs/2016/8159620/
>>>>>>> https://bugs.openjdk.java.net/browse/JDK-8159620
>>>>>>>
>>>>>>> This is a long standing bug on SPARC and as the ppc64 template
>>>>>>> interpreter was initially forked from the SPARC implementation, it
>>>>>>> also manifests there. The problem is that in the case of tiered
>>>>>>> compilation the interpreter unconditionally calls
>>>>>>> InterpreterRuntime::frequency_counter_overflow if the back edge
>>>>>>> counter overflows. This triggers an OSR compilation, even if OSR was
>>>>>>> switched off with -XX:-UseOnStackReplacement.
>>>>>>>
>>>>>>> The fix is simple - just don't call
>>>>>>> InterpreterRuntime::frequency_counter_overflow if OSR has been
>>>>>>> switched off.
>>>>>>>
>>>>>>> Thank you and best regards,
>>>>>>> Volker


More information about the hotspot-dev mailing list