Hotspot loves PHP.reboot

Helmut Eller eller.helmut at gmail.com
Wed Sep 7 23:04:45 PDT 2011


* John Rose [2011-09-06 20:04] writes:

> On Sep 6, 2011, at 8:51 AM, Charles Oliver Nutter wrote:
>
>     Did we ever figure out if it's possible to trick Hotspot into doing a
>     JO instead of the raw bit-level operations? John/Christian/Tom: what
>     would it take to get HS to "know" that we're doing an integer
>     overflow-after-maths check and do the (faster?) JO?
>
> (1) Write a compelling API for something like Integer.addDetectingOverflow.
> (2) Roll it into JDK 8+epsilon.
> (3) Do the JIT work.
>
> People have thought on and off about (1) for many years, but with no clear
> winner.  Exceptions or boxed objects have unpleasant interactions and are
> hard to use, while smuggling out the 33rd bit some other way (TLS, a long or
> double, a return-by-reference, a sentinel value) is painful.
>
> (This is a case where tuples would make things simple, but it is not enough
> to motivate introducing tuples.)

Your comment seems to imply that tuples or multiple return values will
not be available anytime soon.  Have you some information on what will
and will not be in JDK8?

Helmut



More information about the mlvm-dev mailing list