[concurrency-interest] @Contended (JEP-142)

Aleksey Shipilev aleksey.shipilev at oracle.com
Tue Nov 27 15:32:58 EST 2012

On 11/28/2012 12:13 AM, Doug Lea wrote:
> On 11/27/12 13:46, Kasper Nielsen wrote:
>> 3)
>> It probably already is, but I'm just making sure
>> Instrumentation#getObjectSize()
>> returns the correct number.
> (I'll let Aleksey answer this.)

It should. In our reference implementation, we are basically messing
with object field layout during the class loading, so as far as Hotspot
is concerned, it sees the proper size afterwards. Instrumentation might
have better chances to catch the tail paddings, which you will probably
be unable to infer just looking at the field offsets.


More information about the Concurrency-interest mailing list