Can constants loaded by ldc and ldc_w ever be null?

Keith McGuigan Keith.McGuigan at Sun.COM
Fri Mar 13 05:50:38 PDT 2009


Gary Benson wrote:
> Hi all,
> 
> This is hopefully a quick question.  Is it ever possible for
> an ldc or ldc_w instruction to return a null result?
> 
> Cheers,
> Gary
> 

No.  It gets the value out of the constant pool (index > 0), which, as 
far as I can tell, can't encode null.

--
- Keith



More information about the hotspot-dev mailing list