RFR: 8250269: Replace ATTRIBUTE_ALIGNED with alignas [v17]
Roman Kennke
rkennke at openjdk.org
Thu Aug 17 16:02:31 UTC 2023
On Thu, 17 Aug 2023 04:34:42 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> Thanks Roman, though I think there is discussion around offsetof and offset_of and the consensus was that it can't be replaced without causing issues, at least for now
offsetof() can certainly not be replaced wholesale, because offset_of() is only specified to work for standard layout types. But I believe it could be used in places where we know that we are dealing with types that fit the spec. But I'm not deeply familiar with the constraints there.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/11431#issuecomment-1682537506
More information about the hotspot-runtime-dev
mailing list