j.ul.Objects follow-up: methods for var-argification?

Bob Lee crazybob at crazybob.org
Tue Oct 13 19:09:19 UTC 2009

On Mon, Oct 12, 2009 at 12:52 PM, Rémi Forax <forax at univ-mlv.fr> wrote:

> It's not a good idea to have a hashCode() that allocate objects,
> at least until escape analysis is implemented in all VMs.

Agree with Joe--these methods don't carry their weight. If the allocation is
too much to bear, it's easy enough to write the hash by hand. Plus, it won't
have the overhead of a method invocation. ;-)

That's not to say I don't think you should ever do this.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20091013/262af105/attachment.html>

More information about the core-libs-dev mailing list