Why does GCJ generate so many explicit checks for null pointers?

Jeff Sturm jsturm@one-point.com
Tue Jul 29 05:39:00 GMT 2003


On Mon, 28 Jul 2003, David Daney wrote:
> Why check before the constructor call?  Is it ever possible for
> _Jv_AllocObjectNoFinalizer to return null?

No, but the backend optimizers don't know that, or else DCE would
eliminate the test.

Currently only a few java-specific optimizations are done by gcj.

Jeff



More information about the Java mailing list