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: Tom Tromey <tromey at redhat dot com>
- To: Adam Megacz <adam at megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: 13 Sep 2003 10:50:32 -0600
- Subject: Re: eliminating null pointer checks on mmu-less machines
- References: <m13cf1s630.fsf@nowhere.com>
- Reply-to: tromey at redhat dot com
>>>>> "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?
If it doesn't do so well, then I wonder whether the VRP pass (which,
as far as I know, still hasn't gone in) would help.
Another option for MMU-less machines would be to change the ABI so
that the callee checks for null `this'. That would reduce code size,
probably, perhaps at the expense of performance.
Tom