RFR(M): 8031752: Failed speculative optimization should be reattempted when root of compilation is different

Vladimir Kozlov vladimir.kozlov at oracle.com
Thu Feb 20 12:03:37 PST 2014


Good. Thank you, Roland.

Vladimir

On 2/20/14 11:53 AM, Roland Westrelin wrote:
> Hi Vladimir,
>
> Thanks for taking a look at this.
>
>> I think it should be included into original changes.
>> I would be nice if you add comments to this new code.
>> As I understand the main fix is next lines:
>>
>> +       if (!m->method_holder()->is_loader_alive(is_alive)) {
>> +         shift += (int)((intptr_t*)next_extra(dp) - (intptr_t*)dp);
>>
>> but without comments it is not clear what it does. Why 'shift' increment helps?
>
> I updated the webrev in place with comments. Let me know if they help.
>
> Roland.
>
>>
>> Thanks,
>> Vladimir
>>
>> On 2/20/14 9:29 AM, Roland Westrelin wrote:
>>> I found a bug in this already reviewed but not yet pushed change. The method that is referenced in the SpeculativeTrapData can be unloaded while the method that owns the SpeculativeTrapData remains live. This is possible with reflection (at least). Here is a bug fix for that with a test case. The webrev only includes the added change on top of what was already reviewed to make reviewing it easier. Or should I have it reviewed with another bug id?
>>>
>>> http://cr.openjdk.java.net/~roland/8031752/webrev.02-03/
>>>
>>> Roland.
>>>
>


More information about the hotspot-compiler-dev mailing list