RFR (XXS): 8006105: [parfait] Possible null pointer dereference at hotspot/src/share/vm/c1/c1_LIRGenerator.cpp

Albert Noll albert.noll at oracle.com
Mon Apr 29 09:39:15 PDT 2013


Hi Roland,
thank you very much for the feedback. 
How about using guarantee(...) to ensure that src_con != NULL? 

Best,
Albert

----- Original Message -----
From: roland.westrelin at oracle.com
To: albert.noll at oracle.com
Cc: hotspot-compiler-dev at openjdk.java.net
Sent: Monday, April 29, 2013 5:43:09 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re: RFR (XXS): 8006105: [parfait] Possible null pointer dereference at hotspot/src/share/vm/c1/c1_LIRGenerator.cpp

Hi Albert,

It doesn't look like a correct fix to me. src_con == NULL shouldn't be possible here AFAICT. It would mean that src is not of type object which shouldn't happen so by making this change we're actually allowing a broken return value to go unnoticed.
This said, I'm not sure what code change would prevent parfait from complaining while keeping the code correct.

Roland.


More information about the hotspot-compiler-dev mailing list