[15] RFR: 8248476: No helpful NullPointerException message after calling fillInStackTrace

forax at univ-mlv.fr forax at univ-mlv.fr
Thu Jul 2 18:52:12 UTC 2020


yes,
it's what i was saying,
given that a NPE can be thrown very early, before VarHandle is initialized, i believe that declaring numStackTracesFilledIn volatile is the best way to tackle that.

Rémi

----- Mail original -----
> De: "Alan Bateman" <Alan.Bateman at oracle.com>
> À: "Goetz Lindenmaier" <goetz.lindenmaier at sap.com>, "Christoph Dreis" <christoph.dreis at freenet.de>
> Cc: "hotspot-runtime-dev" <hotspot-runtime-dev at openjdk.java.net>, "David Holmes" <david.holmes at oracle.com>, "Remi Forax"
> <forax at univ-mlv.fr>
> Envoyé: Jeudi 2 Juillet 2020 20:47:31
> Objet: Re: [15] RFR: 8248476: No helpful NullPointerException message after calling fillInStackTrace

> On 02/07/2020 17:45, Lindenmaier, Goetz wrote:
>> Hi Christoph,
>>
>> I fixed the comment, thanks for pointing that out.
>>
> One other thing is that NPE::getMessage reads numStackTracesFilledIn
> without synchronization.
> 
> -Alan


More information about the hotspot-runtime-dev mailing list