RFR: 8305898: Alternative self-forwarding mechanism [v4]

Aleksey Shipilev shade at openjdk.org
Wed May 10 08:47:16 UTC 2023


On Tue, 9 May 2023 20:01:39 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

>> src/hotspot/share/oops/oop.inline.hpp line 332:
>> 
>>> 330:     return cast_to_oop(this);
>>> 331:   } else {
>>> 332:     return cast_to_oop(header.decode_pointer());
>> 
>> I think this path misses the original assert:
>> 
>> 
>> assert(is_forwarded(), "only decode when actually forwarded");
>
> No, not really. This method exists to support racy access on the mark word. The equivalent of is_forwarded() here is header.is_marked().

Ah yes, nevermind then.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13779#discussion_r1189560757


More information about the hotspot-dev mailing list