FYI: Patch: java.net.InetAddress
Bryce McKinlay
bryce@mckinlay.net.nz
Tue Sep 30 16:10:00 GMT 2003
On Tuesday, Sep 30, 2003, at 10:27 Pacific/Auckland, Tom Tromey wrote:
>>>>>> "Bryce" == Bryce McKinlay <bryce@mckinlay.net.nz> writes:
>
>>> + // Mask against high order bits of 1110
>>> + if (addr.length == 4)
>
> Bryce> In this case, however, the compiler is hopefully smart enough to
> Bryce> optimize out the second load, so it isn't a problem.
>
> If not, let's fix the compiler. It certainly ought to be able to do
> this. Could you look?
I checked, and it does - identical code generated.
It would be worth checking for indirect-dispatch as well, but I dont
have Andrew's patch installed yet.
Regards
Bryce.
More information about the Java-patches
mailing list