RFR (XS) CR 8014233: java.lang.Thread should have @Contended on TLR fields

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Jun 17 12:09:05 UTC 2013

On 06/17/2013 03:23 PM, Paul Sandoz wrote:
> Looks OK to me (with my lack of reviewing mojo).

Good, thanks.

> More out of curiosity: how does this impact the memory-per-Thread
> with @Contended on fields rather than on the class?

No difference at all. Class-level @Contended will have the padding
before and after the instance fields block, and @Contended("tlr") over
the fields will have the padding before and after those three fields
block. So, all-and-all, it is the same cost to pay.


More information about the core-libs-dev mailing list