RFR: 8181085: Race condition in method resolution may produce spurious NullPointerException

Andrew Haley aph at redhat.com
Thu May 25 13:30:26 UTC 2017


On 25/05/17 14:12, Andrew Dinn wrote:
> The following webrev fixes a race condition that is present in jdk10 and
> also jdk9 and jdk8. It is caused by a misplaced volatile keyword that
> faild to ensure correct ordering of writes by the compiler. Reviews welcome.

Can you explain why we don't need a memory fence there?

Andrew.


More information about the jdk10-dev mailing list