RFR: 8305895: Implement JEP 450: Compact Object Headers (Experimental) [v14]
Stefan Karlsson
stefank at openjdk.org
Fri Sep 13 13:18:16 UTC 2024
On Fri, 13 Sep 2024 12:53:29 GMT, Roman Kennke <rkennke at openjdk.org> wrote:
>> src/hotspot/share/oops/oop.inline.hpp line 295:
>>
>>> 293: // Used by scavengers
>>> 294: void oopDesc::forward_to(oop p) {
>>> 295: assert(cast_from_oop<oopDesc*>(p) != this,
>>
>> Do we really need the cast here?
>
> Yes, otherwise compiler complains about ambiguous != operator.
OK, we shouldn't need to. It seems like I can silence the compiler by tweaking oopsHierarchy.hpp. I'll deal with that as a follow-up.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20677#discussion_r1758853099
More information about the build-dev
mailing list