RFR: 8305895: Implementation: JEP 450: Compact Object Headers (Experimental) [v3]

Aleksey Shipilev shade at openjdk.org
Wed May 10 14:57:30 UTC 2023


On Wed, 10 May 2023 14:26:01 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

>> src/hotspot/share/gc/shenandoah/shenandoahVerifier.cpp line 309:
>> 
>>> 307:     _loc = obj;
>>> 308:     Klass* klass = obj->forward_safe_klass();
>>> 309:     obj->oop_iterate_backwards(this, klass);
>> 
>> Why `backwards`?
>
> Because that's the only oop_iterate() variant that takes a Klass* :-) It seems trivial to add such a forward-variant, though. Prefer that?

I guess it is not a bother for ShenandoahVerifier, so unless it is needed anywhere else, there is no need to add another method.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13844#discussion_r1190033196


More information about the hotspot-dev mailing list