[RFR] Ignore fields annotated with @LazyInit

Arthur Eubanks aeubanks at google.com
Tue Jun 11 00:36:27 UTC 2019


webrev:
http://cr.openjdk.java.net/~aeubanks/tsanfieldignore/webrev.00/index.html

This change introduces a new annotation,
java.util.concurrent.annotation.LazyInit, which causes TSAN to ignore races
on that field.
References are not simply ignored, but a release/acquire is performed on
them. This is so that any following accesses to its member variables are
not also reported as racy.

LazyInitReferenceLoopTest.java is still failing with weird stack trace
issues, but I'd like some feedback on this change anyway.


More information about the tsan-dev mailing list