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


>>>>> "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


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