Compiling Object.<init>
Gary Benson
gbenson at redhat.com
Wed Feb 25 04:39:58 PST 2009
Hi all,
I'm writing a JIT for OpenJDK, and I'm not sure what I should be doing
when compiling Object.<init>. I was confused to see it scheduled for
compilation at all, since it's an empty method, but now I see its one
bytecode is not _return but _return_register_finalizer so of course
the empty method detector doesn't recognise it.
When it gets compiled, the bytecode is read via a ciBytecodeStream,
and it seems to be coming through as a _return as I have no code to
handle _return_register_finalizer and it would have aborted if it got
that.
Do I need to detect that I'm compiling Object.<init> and special case
it?
Cheers,
Gary
--
http://gbenson.net/
More information about the hotspot-dev
mailing list