RFR: 8297534: Specify the size of MEMFLAGS [v2]
Johan Sjölen
jsjolen at openjdk.org
Thu Nov 24 21:24:56 UTC 2022
On Thu, 24 Nov 2022 11:43:53 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Hmm, I can live with that, though I would have preferred the raw type for clarity. After all, enum should follow the layout of the header, not the other way around.
>
> Can you at least add a static assert that sizeof memflags is 8 bits?
Absolutely. Would you like that right after the definition of MEMFLAGS then? (and not after the definition of `MEMFLAGS _flags` in the header)
-------------
PR: https://git.openjdk.org/jdk/pull/11336
More information about the hotspot-runtime-dev
mailing list