one way to devirtualize acmps that LIFE throws at the VM

John Rose john.r.rose at oracle.com
Mon Oct 19 19:30:27 UTC 2020


Here’s an old idea I’ve mentioned in the past, but not written
up until now:  Capture the LIFE (Legacy Idiom For Equality)
as a synthetic API point derived from Object.equals.

In the presence of value types it would devirtualize acmp
instructions in generic code, where they are part of LIFE.

https://bugs.openjdk.java.net/browse/JDK-8255024

Let’s keep this in our back pocket, in case generic uses of
acmp become a bottleneck.

— John


More information about the valhalla-dev mailing list