RFR 8231146: Heap object size

Roger Riggs Roger.Riggs at oracle.com
Fri Sep 20 13:03:36 UTC 2019

Hi Aleksey,

I'll have to try it, but I don't expect it to be able to understand the 
in objects or arrays without an update.

This is for exploratory work on using inline classes and algorthms.

JOL is not in an API in java.base that can be used to dynamically adjust
data structures based on actual embedding.

I expect any long term APIs to be different and more detailed.

Thanks, Roger

On 9/20/19 8:47 AM, Aleksey Shipilev wrote:
> On 9/17/19 10:00 PM, Roger Riggs wrote:
>> 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.
> Any reason why JOL does not work?
>    http://openjdk.java.net/projects/code-tools/jol/
> It already calls through the existing interfaces to figure out the object size.

More information about the valhalla-dev mailing list