RFR: 8254274: Development to add 'lint' warning for @ValueBased classes

Srikanth Adayapalam sadayapalam at openjdk.java.net
Mon Oct 26 11:11:23 UTC 2020


On Mon, 26 Oct 2020 11:01:59 GMT, Srikanth Adayapalam <sadayapalam at openjdk.org> wrote:

> New javac lint mode (-Xlint:synchronize) to warn about client side as well JDK internal attempts to synchronize on instances of value based classes

A few questions for reviewers:

(1) Do we want the lint mode to be on my default ? Presently it is off and has to be expressly opted into.
(2) Do we want to not use up a bit for VALUE_BASED flag and simply walk the annotations to determine if a type is value based ??

-------------

PR: https://git.openjdk.java.net/valhalla/pull/237



More information about the valhalla-dev mailing list