RFR (S): CR 8012939: @Contended doesn't work correctly with inheritance

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed May 15 00:19:04 PDT 2013


On 05/15/2013 03:24 AM, Vladimir Kozlov wrote:
> On 5/14/13 3:24 PM, Aleksey Shipilev wrote:
>> Hi,
>>
>> It seems we have a plenty of failures in new SQE tests for @Contended
>> because of this. Please see the updated webrev for the issue:
>>    http://cr.openjdk.java.net/~shade/8012939/webrev.01/
>>
>> This is the minimal fix. Most of the instance_size calculations use
>> first_nonstatic_field_offset as the boundary for the instance fields
>> block. @Contended on the class hijacks this boundary with padding, and
>> so the instance size is incorrect (also evidenced by the wrong assert).
>>
>> There is also a more thorough clean up of that code:
>>    http://cr.openjdk.java.net/~shade/8012939/webrev.02/
> 
> I am fine with this version of the fix. But I would suggest more :)
> renaming. 

Sorry, but this will complicate the patch beyond graspable. Let's commit
the minimal fix, and work on the refactoring in the separate issue:
  http://cr.openjdk.java.net/~shade/8012939/webrev.01/

-Aleksey.


More information about the hotspot-dev mailing list