JIT code generation for Long/Integer.compare

John Rose john.r.rose at oracle.com
Thu Oct 1 19:20:57 UTC 2015

On Oct 1, 2015, at 10:05 AM, Aleksey Shipilev <aleksey.shipilev at oracle.com> wrote:
> Also, why would anyone do "Long.compare(a, b) < 0" when it's actually "a
> < b"? Should we actually care about this (arguably) code smell?

Smelly code arises naturally from well-written code after inlining and type sharpening.

— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20151001/8d135140/attachment.html>

More information about the hotspot-compiler-dev mailing list