In 32 bit Server,what's the size of Java.Lang.Object

Vitaly Davidovich vitalyd at gmail.com
Fri Oct 19 06:27:37 PDT 2012


The presentation may be talking about IBM's VM.  Hotspot obj header is two
words; arrays have an extra int32 for length.

Sent from my phone
On Oct 19, 2012 9:15 AM, "fuyou" <fuyou001 at gmail.com> wrote:

> hi all
>       I am issues about in 32 bit Server,what's the size of
> Java.Lang.Object
> in this blog how-much-memory-is-used-by-my-java<http://kohlerm.blogspot.com/2008/12/how-much-memory-is-used-by-my-java.html>
>   java.lang.Object: 2 * 4 (Object header),the size of Object is 2*4
> but in the sessioCON5135_PDF_5135_0001.pdf<http://www.myexpospace.com/JavaOne2012/SessionFiles/CON5135_PDF_5135_0001.pdf> (page
> 9)   Object Metadata: 3 slots of data (4 for arrays, Class: pointer to
> class information,Flags: shape, hash code, etc, Lock: flatlock or pointer
> to inflated monito)
>  so the size of Object is 3*4
>
> who is right?
>
> --
>    =============================================
>
>   fuyou001
> Best Regards
>
>
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20121019/d627c02e/attachment.html 


More information about the hotspot-gc-use mailing list