RFR (XS) CR 8014233: java.lang.Thread should have @Contended on TLR fields (original) (raw)
Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Jun 17 12:09:05 UTC 2013
- Previous message: RFR (XS) CR 8014233: java.lang.Thread should have @Contended on TLR fields
- Next message: RFR (XS) CR 8014233: java.lang.Thread should have @Contended on TLR fields
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
-Aleksey.
- Previous message: RFR (XS) CR 8014233: java.lang.Thread should have @Contended on TLR fields
- Next message: RFR (XS) CR 8014233: java.lang.Thread should have @Contended on TLR fields
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]