RFR (S) 8249137: Remove CollectedHeap::obj_size

Thomas Schatzl thomas.schatzl at oracle.com
Thu Jul 9 09:00:36 UTC 2020


Hi,

On 09.07.20 08:36, Aleksey Shipilev wrote:
> RFE:
>    https://bugs.openjdk.java.net/browse/JDK-8249137
> 
> It was added by JDK-8211270 to support old-style Shenandoah that needed a separate fwdptr slot.
> After JDK-8224584 it does not need this anymore. Additionally, CH::obj_size may disagree with other
> code that pokes at layout helper directly, for example GraphKit::new_instance.
> 
> This also avoids a virtual call on some paths, although those paths are not very performance-sensitive.
> 
> The patch is a simple series of few-liners:
> 

   looks good.

Thomas


More information about the hotspot-gc-dev mailing list