VM_Interface.resetThreadCounter();
  protected final void globalPrepare() {    hi = !hi;        // flip the semi-spaces    ssMR.reset();    // reset the semispace memory resource, and    // prepare each of the collected regions    CopySpace.prepare(((hi) ? ss0VM : ss1VM), ssMR);    ImmortalSpace.prepare(immortalVM, null);    losSpace.prepare(losVM, losMR);    VM_Interface.resetThreadCounter();  // necessary for preCopyGCInstances()  }