RFR: JDK-8211270: GC abstraction to get real object and headers size

Aleksey Shipilev shade at redhat.com
Mon Oct 8 16:46:13 UTC 2018

On 10/05/2018 06:20 PM, Roman Kennke wrote:
>> Webrev:
>> http://cr.openjdk.java.net/~rkennke/JDK-8211270/webrev.00/

Do we really need the abstractions for header sizes? I think all usages need the object size, and
header sizes can be just picked up from the usual places. No GC, including Shenandoah is changing
the header size?

Trying to understand the use case, looking at Shenandoah's diff here:


...it seems what we really want is to mix in oop_extra_words into plab.cpp accessors. Because doing
ShenandoahHeap::obj_header_size() { return obj_header_size + oop_extra_words; } seems wrong down the
line -- it would _not_ be the header size.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20181008/a53c284b/signature.asc>

More information about the hotspot-gc-dev mailing list