traceIndex = ++lastTraceIndex;
traceIndex = getNextTraceIndex();
  public VM_StackTrace(int skip) {    traceIndex = ++lastTraceIndex; // set for good for this method.    // (1) Count the number of frames comprising the stack.    int numFrames = walkFrames(false, skip+1);    compiledMethods = new VM_CompiledMethod[numFrames];    offsets = new int[numFrames];    walkFrames(true, skip+1);        // Debugging trick: print every nth stack trace created    if (VM.VerboseStackTracePeriod > 0) {      if (((traceIndex - 1) % VM.VerboseStackTracePeriod) == 0) {	VM.disableGC();	VM.sysWriteln("[ BEGIN Verbosely dumping stack at time of creating VM_StackTrace # ", traceIndex);	VM_Scheduler.dumpStack();	VM.sysWriteln("END Verbosely dumping stack at time of creating VM_StackTrace # ", traceIndex, " ]");	VM.enableGC();      }    }  }