VM.sysWrite(" ",i,": ");VM.sysWrite(value,false);
VM.sysWrite(" ",i,": "); VM.sysWrite(value);
  public void updateHPMcounters(VM_Thread previous_thread, VM_Thread current_thread, boolean timerTick)  {    //-#if RVM_WITH_HPM    // native calls cause stack to be grown and cause an assertion failure.    if (hpm_safe) {      if (previousThread.hpm_counters == null) {	previous_thread.hpm_counters = new HPM_counters();	VM.sysWriteln("***VM_Processor.dispatch() Previous thread id ",		      previous_thread.getIndex(),"'s hpm_counters was null!***");      }      int n_counters = VM.sysCall0(VM_BootRecord.the_boot_record.sysHPMgetCountersIP);      if (hpm_trace) {	int processor_id = VM_Processor.getCurrentProcessorId();	int thread_id    = previous_thread.getIndex();	if (! timerTick) {	  thread_id = -thread_id;	}	VM.sysWrite("VP ", processor_id,", tid ",thread_id);      }      // dump real time and change in real time      long real_time       = VM_Magic.getTimeBase();      long real_time_delta = real_time - previous_thread.startOfRealTime;      if (real_time_delta < 0) {	VM.sysWrite("***VM_Processor.updateHPMcounters(");	VM.sysWrite(previous_thread.getClass().getName());	VM.sysWrite(") real time overflowed: start ",previous_thread.startOfRealTime);	VM.sysWrite(" current ",real_time);	VM.sysWrite(" delta ",real_time_delta);VM.sysWriteln("!***");      } else {	previous_thread.hpm_counters.counters[0] += real_time_delta;                        hpm_counters.counters[0] += real_time_delta;      }      if (current_thread != null) 	current_thread.startOfRealTime = real_time;      if (hpm_trace) {	VM.sysWrite(" RT "); VM.sysWrite(real_time,false);	VM.sysWrite(" D "); VM.sysWrite(real_time_delta,false);      }      // dump counters      for (int i=1; i<=n_counters; i++) {	long value = VM.sysCall_L_I(VM_BootRecord.the_boot_record.sysHPMgetCounterIP,i);	if (hpm_trace && value > 0) { 	  VM.sysWrite(" ",i,": ");VM.sysWrite(value,false); 	}                        hpm_counters.counters[i] += value;// update virtual processor HPM counters	previous_thread.hpm_counters.counters[i] += value;// update thread HPM counters      }      if (hpm_trace) VM.sysWriteln();      VM.sysCall0(VM_BootRecord.the_boot_record.sysHPMresetCountersIP);    }    //-#endif  }