Can constants loaded by ldc and ldc_w ever be null?

Gary Benson gbenson at redhat.com
Fri Mar 13 06:22:00 PDT 2009


Keith McGuigan wrote:
> Gary Benson wrote:
> > This is hopefully a quick question.  Is it ever possible for
> > an ldc or ldc_w instruction to return a null result?
>
> No.  It gets the value out of the constant pool (index > 0),
> which, as far as I can tell, can't encode null.

Cool.  Do you know if it would be possible for a user to override
it, in a debugger for example?

Cheers,
Gary

-- 
http://gbenson.net/



More information about the hotspot-dev mailing list