RFR: 8276563: Undefined Behaviour in class Assembler
Jorn Vernee
jvernee at openjdk.java.net
Sun Nov 7 13:12:36 UTC 2021
On Sun, 7 Nov 2021 06:59:25 GMT, Mai Đặng Quân Anh <duke at openjdk.java.net> wrote:
> The only odd thing was that when using a constant object know at the use site (case B), I would have expected an immediate, but the constant encoding gets loaded from the text segment instead.
Yeah... I found that the constructor has to be marked `constexpr` to make it work with GCC (as @merykitty also found). The value also gets emitted into `.rodata` in that case.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6280
More information about the hotspot-compiler-dev
mailing list