RFR: 8276563: Undefined Behaviour in class Assembler
Andrew Haley
aph at openjdk.java.net
Mon Nov 8 16:41:40 UTC 2021
On Mon, 8 Nov 2021 14:59:18 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Okay, I'd assume not having the encoding be `const` would be fine, as long as `Register` is passed around by-value. i.e. only some code's private copy of a `Register` instance would be overwritten (same as if it was a pointer).
>
> Any ways, thanks for trying this out! If the required changes are too much (making backporting harder as well) I think going with a more focused fix is the way to go, as well. Maybe we can come back for a broader refactoring another day.
Sorry, my last comment was a bit misleading. I should not have posted so soon. I have something that works now with a bunch of overloads and `constexpr` references, etc., but it's all a bit too much.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6280
More information about the hotspot-compiler-dev
mailing list