Examples of VmClassType


Examples of org.jnode.vm.classmgr.VmClassType

     * @see org.jnode.vm.facade.ObjectVisitor#visit(java.lang.Object)
     */
    public boolean visit(Object object) {
        final int color = VmMagic.getObjectColor(object);
        if (color == GC_YELLOW) {
            final VmClassType type = VmMagic.getObjectType(object);
            final VmMethod fm = type.getFinalizeMethod();
            if (fm != null) {
                try {
                    helper.invokeFinalizer(fm, object);
                } catch (Throwable ex) {
                    // Ignore error in finalize
View Full Code Here

Examples of org.jnode.vm.classmgr.VmClassType

            final boolean finalized = VmMagic.isFinalized(object);
            if (finalized) {
                // Already finalized, we can free it now
                currentHeap.free(object);
            } else {
                final VmClassType vmClass = VmMagic.getObjectType(object);
                if (!vmClass.hasFinalizer()) {
                    // No finalizer, we can free it now
                    currentHeap.free(object);
                } else {
                    // Mark object for invoke of finalizer on other thread.
                    helper.atomicChangeObjectColor(object, gcColor, GC_YELLOW);
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.