harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Fedotov" <alexei.fedo...@gmail.com>
Subject Re: [drlvm][inline helper] question on object size for allocation
Date Sat, 22 Dec 2007 10:48:36 GMT
Xiao Feng,
I believe you are correct. At least redefineClasses() should throw an
error if the object size change is attempted.

Thanks.

On Dec 22, 2007 11:54 AM, Xiao-Feng Li <xiaofeng.li@gmail.com> wrote:
> Hi, I found the new helper design uses following interface for object
> allocation:
>
>     public static Address alloc(Address classHandle) {
>         int objSize = VMHelper.getTypeSize(classHandle);
>         int allocationHandle = VMHelper.getAllocationHandle(classHandle);
>         return alloc(objSize, allocationHandle);
>     }
>
> Is the VMHelper.getTypeSize(classHandle) actually a runtime constant
> known by JIT?
>
> Thanks,
> xiaofeng
>
> --
> http://xiao-feng.blogspot.com
>



-- 
With best regards,
Alexei,
ESSD, Intel

Mime
View raw message