Package org.vmmagic.unboxed

Examples of org.vmmagic.unboxed.ObjectReference.toAddress()


        println("getSelector point B");
        ObjectReference objRef = ObjectReference.fromObject(obj);

        println("getSelector point C");
        return (objRef == null) ? null : getSelector(objRef.toAddress());
    }
}
View Full Code Here


    @Inline
    private final void verifyChild(Object child, Object parent, String where) {
        if (child != null) {
            final ObjectReference childRef = ObjectReference.fromObject(child);
            if (!heapManager.isObject(childRef.toAddress())) {
                Unsafe.debug("GCVerifyError: in ");
                Unsafe.debug(where);
                Unsafe.debug(", parent type ");
                Unsafe.debug(VmMagic.getObjectType(parent).getName());
                Unsafe.debug(VmMagic.getObjectColor(parent));
View Full Code Here

                Unsafe.debug(where);
                Unsafe.debug(", parent type ");
                Unsafe.debug(VmMagic.getObjectType(parent).getName());
                Unsafe.debug(VmMagic.getObjectColor(parent));
                Unsafe.debug("; child (");
                Unsafe.debug(childRef.toAddress().toInt());
                Unsafe.debug(") is not an object ");
                Unsafe.debug(VmMagic.getObjectColor(childRef));
                errorCount++;
            }
        }
View Full Code Here

    @Inline
    private final void verifyChild(Object child, Object parent, String where, int i, int offset) {
        if (child != null) {
            final ObjectReference childRef = ObjectReference.fromObject(child);
            if (!heapManager.isObject(childRef.toAddress())) {
                Unsafe.debug("GCMarkError: in ");
                Unsafe.debug(where);
                Unsafe.debug(", i ");
                Unsafe.debug(i);
                Unsafe.debug(", offset ");
View Full Code Here

                Unsafe.debug(offset);
                Unsafe.debug(", parent type ");
                Unsafe.debug(VmMagic.getObjectType(parent).getName());
                Unsafe.debug(VmMagic.getObjectColor(parent));
                Unsafe.debug("; child (");
                Unsafe.debug(childRef.toAddress().toInt());
                Unsafe.debug(") is not an object ");
                Unsafe.debug(VmMagic.getObjectColor(childRef));
                helper.die("Corrupted heap");
            }
        }
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.