eliminating null pointer checks on mmu-less machines
Andrew Haley
aph@redhat.com
Mon Sep 15 10:57:00 GMT 2003
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.
More information about the Java
mailing list