We no longer need `offset_of` in HotSpot code, and can instead directly use `offsetof`. One benefit of this is that offsetof is constexpr, which we should try to make use of when converting uses. (That means the update shouldn't be done as a simple sed script replacement, and maybe should be broken up into chunks.)
- relates to
-
JDK-8300080 offset_of for GCC/Clang exhibits undefined behavior and is not always a compile-time constant
-
- Resolved
-