Fwd: RFR: 8181085: Race condition in method resolution may produce spurious NullPointerException
Andrew Haley
aph at redhat.com
Fri May 26 08:33:42 UTC 2017
On 26/05/17 09:29, Andrew Dinn wrote:
> On 26/05/17 02:04, David Holmes wrote:
>> On 26/05/2017 4:55 AM, Martin Buchholz wrote:
>>> [+jdk8u-dev]
>>>
>>> We've been hunting the elusive spurious NPEs as well; the following seems
>>> to be working for us (but we don't have any small repro recipe);
>>> something
>>> like this should be put into jdk8:
>>
>> In other words you want a backport of: 8061964: Insufficient compiler
>> barriers for GCC in OrderAccess functions …
>>
>> https://bugs.openjdk.java.net/browse/JDK-8061964
>
> Well, yes, that sounds like the 'correct' solution but ...
>
>> IIRC what stopped this from being an 'automatic' backport candidate was
>> the potential problem of older gcc's needing to be validated.
>
> If the 'correct' fix fails because of legacy compilers
It won't. All of the Linux kernel and all of glibc requires this mechanism
to work, and it has always worked.
Andrew.
More information about the jdk8u-dev
mailing list