This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Why does GCJ generate so many explicit checks for null pointers?
- From: Jeff Sturm <jsturm at one-point dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: tromey at redhat dot com, <java at gcc dot gnu dot org>
- Date: Tue, 29 Jul 2003 01:27:45 -0400 (EDT)
- Subject: Re: Why does GCJ generate so many explicit checks for null pointers?
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