Yes, JIT looks for classHandle definition and in case if classHandle is
constant 'VMHelper.getTypeSize(classHandle)' is also processed as a
compilation time constant.
On Dec 22, 2007 2:54 PM, Xiao-Feng Li <[EMAIL PROTECTED]> 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
>
--
Mikhail Fursov