Package org.jnode.vm.facade

Examples of org.jnode.vm.facade.VmHeapManager.newArray()


        final VmArrayClass<?> arrCls = vmClass.getArrayClass();
        VmHeapManager hm = heapManager;
        if (hm == null) {
            heapManager = hm = VmUtils.getVm().getHeapManager();
        }
        final Object result = hm.newArray(arrCls, elements);

        // Screen.debug("}");
        return result;
    }
View Full Code Here


                    // Trace new char[]
                    VmUtils.getVm().getCounter(currentClass.getName()).add(elements);
                }
            }
        }
        final Object result = hm.newArray(VmType.getPrimitiveArrayClass(atype),
            elements);
        return result;
    }

    /**
 
View Full Code Here

    public static Object allocArray(VmType vmClass, int elements) {
        VmHeapManager hm = heapManager;
        if (hm == null) {
            heapManager = hm = VmUtils.getVm().getHeapManager();
        }
        final Object result = hm.newArray((VmArrayClass) vmClass, elements);
        return result;
    }

    /**
     * Throw a classcast exception.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.