Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Copy the org.mmtk.plan.nogc package to org.mmtk.plan.tutorial (copy and paste the package in Eclipse).
  2. Rename the constituent classes from NoGC* to Tutorial* (use Refactor->Rename on each class within the org.mmtk.plan.tutorial package in Eclipse).
  3. Edit file class org.mmtk.harness.PlanSpecificConfig, and add the following lines 

    No Format
     register(new PlanSpecific("org.mmtk.plan.tutorial.Tutorial"), "Tutorial");

    to the static initializer (look for "NoGC").

  4. Modify your MMTk Harness Eclipse Run Configuration to use the new Plan (the name of the plan is the second parameter to the "register" method you inserted above), and click 'Run' to run it.
  5. Create a new configuration file, build/configs/, with a single line: config.mmtk.plan=org.mmtk.plan.tutorial.Tutorial
  6. Build and run the resulting collector:
    • build with something like:

      No Format
      bin/buildit localhost BaseBaseTutorial
    • run with something like:

      No Format
      dist/BaseBaseTutorial_ia32-linux/rvm HelloWorld

      This zip file captures all of the above steps with respect to Jikes RVM 3.0.2. You can use the files within the archive to verify you've completed the above steps correctly.