RFR 8231146: Heap object size

Remi Forax forax at univ-mlv.fr
Thu Sep 19 16:56:26 UTC 2019


Hi Roger,
why not using sun.misc.Unsafe instead of j.u.Objects ?

Rémi

----- Mail original -----
> De: "Roger Riggs" <Roger.Riggs at oracle.com>
> À: "valhalla-dev" <valhalla-dev at openjdk.java.net>
> Envoyé: Mardi 17 Septembre 2019 22:00:57
> Objet: RFR 8231146: Heap object size

> Please review and comment:
> 
> This request adds a (probably temporary) API to return the heap size of
> an object.
> 
> In prototyping with inline classes it will be useful to know an
> approximation of the size of an object in the heap while prototyping
> various tradoffs in performance and data structures.
> 
> 
> Webrev:
> 
>   http://cr.openjdk.java.net/~rriggs/webrev-object-size-8231146/
> 
> Thanks, Roger


More information about the valhalla-dev mailing list