Package org.mmtk.policy

Examples of org.mmtk.policy.ImmortalSpace


  private static int BOOT_SEGMENT_MB = (0x800000>>LOG_BYTES_IN_MBYTE);

    public final ImmortalSpace getVMSpace() throws InterruptiblePragma
    {
        ImmortalSpace bootSpace = new ImmortalSpace("boot", Plan.DEFAULT_POLL_FREQUENCY,
            BOOT_SEGMENT_MB, false);
        System.out.println("org.apache.HarmonyDRLVM.mm.mmtk.Memory.getVMSpace(), bootSpace = " + bootSpace);
        return bootSpace;
    }
View Full Code Here


        if (bootSpace == null) {
            final VmArchitecture arch = VmUtils.getVm().getArch();
            final long bootSize = AVAILABLE_START().sub(HEAP_START().toWord())
                    .toLong();
            final int bootSizeMb = (int) (bootSize >>> 20);
            bootSpace = new ImmortalSpace("boot",
                    BasePlan.DEFAULT_POLL_FREQUENCY, bootSizeMb, false);
        }
        return bootSpace;
    }
View Full Code Here

TOP

Related Classes of org.mmtk.policy.ImmortalSpace

Copyright © 2018 www.massapicom. 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.