RFR: JDK-8300080: offset_of for GCC/Clang exhibits undefined behavior and is not always a compile-time constant [v4]
Justin King
jcking at openjdk.org
Tue Jan 17 14:41:13 UTC 2023
On Tue, 17 Jan 2023 13:01:47 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> Small nit, I think it might be better to use `ALWAYSINLINE` instead of the attribute for the custom `offset_of`, it looks somewhat neater
Unfortunately `ALWAYSINLINE` includes the `inline` keyword, which I do not believe can be used at the location we need to place the attribute.
-------------
PR: https://git.openjdk.org/jdk/pull/11978
More information about the hotspot-dev
mailing list