Patch: Remove exception catching from normal path in Arrays.equals.

David Daney ddaney@avtrex.com
Fri Sep 5 19:16:00 GMT 2003


Greetings:

Currently all variants of java.util.Arrays.equals() catch 
NullPointerExceptions to detect null valued parameters.  In one of our 
programs this is a fairly common case and the throw/catch overhead was 
significant.

This patch replaces the exception catching logic with explicit checks 
for null values.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Arrays.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030905/63f91f25/attachment.ksh>


More information about the Java-patches mailing list