RFR: 8276563: Undefined Behaviour in class Assembler

Andrew Haley aph at openjdk.java.net
Sun Nov 7 11:52:37 UTC 2021


On Sat, 6 Nov 2021 17:49:37 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> In other words: in the current scheme we pass around an integer disguised as a pointer, and then have to cast it to an integer to use it. That seems silly. Let's just pass around the integer instead, wrapped in a value-object, which the compiler should treat the same as if it were just the integer.

That's worth exploring, but I'm reluctant to start overloading `->`. I'll have a look.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6280


More information about the hotspot-compiler-dev mailing list