This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: eliminating null pointer checks on mmu-less machines
- From: Andrew Haley <aph at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Adam Megacz <adam at megacz dot com>, java at gcc dot gnu dot org
- Date: Mon, 15 Sep 2003 11:38:43 +0100
- Subject: Re: eliminating null pointer checks on mmu-less machines
- References: <m13cf1s630.fsf@nowhere.com><87r82kbpk7.fsf@fleche.redhat.com>
Tom Tromey writes:
> >>>>> "Adam" == Adam Megacz <adam@megacz.com> writes:
>
> Adam> Hey, I was thinking about NullPointerException handling on machines
> Adam> with no MMU. There's not much that can be done for field accesses,
> Adam> but method invocations are much more common.
>
> How good a job does the optimizer do at eliminating redundant checks?
It does well -- this is a common optimization for all languages with
pointers. What we don't do at all well is eliminating array bounds
checks.
Andrew.