This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: eliminating null pointer checks on mmu-less machines


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]