Home > Language > The MMTk Test Harness
Page added by Robin Garner
The MMTk test harness allows you to run MMTk as a user-level application, step through it in a debugger and do any of the other standard Java debugging procedures that being the memory manager of JikesRVM prevents you from doing. The test harness incorporates a simple interpreted scripting language with just enough features to build interesting data structures, perform GCs and assert properties of them.
The test harness is a recent development. Please don't expect it to be 100% bug-free just yet.
The harness can be run standalone or via Eclipse (or other IDE).
ant mmtk-harness java -jar target/mmtk/mmtk-harness <script-file> [options...]
There is a collection of sample scripts in the MMTk/harness/test-scripts directory.
ant mmtk-harness-eclipse-project
Define a new run configuration with main class org.mmtk.harness.Main
Options are passed to the test harness as 'keyword=value' pairs. The standard MMTk options that are available through JikesRVM are accepted (leave off the "-X:gc:"), as well as the following harness-specific options: