VM_Interface.resetThreadCounter();
  protected final void globalPrepare() {    nurseryMR.reset(); // reset the nursery    lastGCFull = fullHeapGC;    if (fullHeapGC) {      Statistics.gcMajorCount++;      // prepare each of the collected regions      if (Plan.usesLOS) losSpace.prepare(losVM, losMR);      globalMaturePrepare();      ImmortalSpace.prepare(immortalVM, null);    }    VM_Interface.resetThreadCounter();  // necessary for preCopyGCInstances()  }