RFR: 8264268: Don't use oop types for derived pointers [v2]
Stefan Karlsson
stefank at openjdk.java.net
Mon Mar 29 09:26:19 UTC 2021
On Sat, 27 Mar 2021 23:03:49 GMT, John R Rose <jrose at openjdk.org> wrote:
> Looks good.
Thanks.
>
> Maybe add `typedef intptr_t derived_oop_t` to make the operations on d-oops a little more distinctive.
I used Kim's enum suggestion.
>
> Maybe add a static assert that `sizeof(oop) == sizeof(intptr_t)`, just in case there's a problem with compressed oops in the future.
Done.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3214
More information about the hotspot-dev
mailing list