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

fuyou fuyou001 at gmail.com
Fri Oct 19 06:13:52 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20121019/0e5998e1/attachment.html 


More information about the hotspot-gc-use mailing list