harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Chow" <simon.harm...@gmail.com>
Subject Re: [drlvm][object]
Date Sat, 22 Dec 2007 06:57:25 GMT
On 21/12/2007, Xiao-Feng Li <xiaofeng.li@gmail.com> wrote:
>
> On Dec 21, 2007 4:58 PM, Simon Chow <simon.harmony@gmail.com> wrote:
> > In my view, java object structure is defined as managedObject in
> > object_layout.h
>
> Right, that's the VM side of the definition. In GC, it has another
> type for the same thing: Patial_Reveal_Object. They both only
> partially reveals the object header definition.
>
> The object fields are laid out in Class::assign_offsets_to_fields()
> and related methods.
> Basically you can find the info in
> vm/vmcore/src/class_support/prepare.cpp.


I found the offset of fields is aligned to its own size when calculating the
object layout in Class::assign_offsets_to_fields().
Why is that?

Array has its own counterpart definitions.
>
> Thanks,
> xiaofeng
>
> >
> > On 21/12/2007, 史成荣 <icyrong@gmail.com> wrote:
> > >
> > > hi, all
> > >    I want to know the structure of the java objcet. Where can I find
> the
> > > exact class describing java object in the source code of Harmony?
> > >
> > > Thanks,
> > > Chengrong
> > >
> >
> >
> >
> > --
> > From : Simon.Chow@Software School of Fudan University
> >
>
>
>
> --
> http://xiao-feng.blogspot.com
>



-- 
From : Simon.Chow@Software School of Fudan University
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message