Skip to main content

David Dice: Java @Contended annotation to help reduce false sharing

Java @Contended annotation to help reduce false sharing: @Contended is something we've wanted for a long time. The JVM provides automatic layout and placement of fields. Usually it'll (a) sort fields by descending size to improve footprint, and (b) pack reference fields so the garbage collector can process a contiguous run of reference fields when tracing. @Contended gives the program a way to...

Community: OpenJDK