harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao-Feng Li" <xiaofeng...@gmail.com>
Subject [drlvm][inline helper] question on object size for allocation
Date Sat, 22 Dec 2007 08:54:27 GMT
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

Mime
View raw message