if (hpm_thread_group) {
hpm_info.numberOfCounters = VM_SysCall.sysHPMgetNumberOfCounters();  if (thread_group) {
  static public void boot()   {    if (VM.BuildForHPM && enabled) {      //-#if RVM_WITH_HPM      // Needed to allocate the HPM counters for the primodial thread!      VM_Thread thread = VM_Thread.getCurrentThread();      if (thread.hpm_counters == null) {	if(verbose>=2)VM.sysWriteln("VM_HPMs.boot() call new HPM_counters for primordial thread");	thread.hpm_counters = new HPM_counters();      }      // When only the main thread Java thread is created, allocate HPM_counters.      int events[] = hpm_info.ids;      if (verbose>=3) {        VM.sysWrite("VM_HPMs.boot(): Events 1: "); VM.sysWrite(events[1]);	VM.sysWrite(", 2: ");VM.sysWrite(events[2]);VM.sysWrite(", 3: ");VM.sysWrite(events[3]);	VM.sysWrite(", 4: ");VM.sysWrite(events[4]);VM.sysWrite(", 5: ");VM.sysWrite(events[5]);	VM.sysWrite(", 6: ");VM.sysWrite(events[6]);VM.sysWrite(", 7: ");VM.sysWrite(events[7]);	VM.sysWrite(", 8: ");VM.sysWrite(events[8]);VM.sysWrite(", mode: ");VM.sysWrite(hpm_info.mode);	VM.sysWrite("\n");      }      if(verbose>=2)VM.sysWrite("VM_HPMs.boot() call hpmInit()\n");      VM_SysCall.sysHPMinit();      // get number of counters      hpm_info.numberOfCounters = VM_SysCall.sysHPMgetNumberOfCounters();      if(verbose>=2) {	VM.sysWrite("VM_HPMs.boot() call hpmSetEvent(");	VM.sysWrite(events[1]);VM.sysWrite(",");VM.sysWrite(events[2]);VM.sysWrite(",");	VM.sysWrite(events[3]);VM.sysWrite(",");VM.sysWrite(events[4]);VM.sysWrite(")\n");      }      VM_SysCall.sysHPMsetEvent(events[1],events[2],events[3],events[4]);      if(verbose>=2){	VM.sysWrite("VM_HPMs.boot() call hpmSetEventX(");	VM.sysWrite(events[5]);VM.sysWrite(",");VM.sysWrite(events[6]);VM.sysWrite(",");	VM.sysWrite(events[7]);VM.sysWrite(",");VM.sysWrite(events[8]);VM.sysWrite(")\n");      }      VM_SysCall.sysHPMsetEventX(events[5],events[6],events[7],events[8]);      if(verbose>=2){	VM.sysWrite("VM_HPMs.boot() call hpmSetMode(",hpm_info.mode,")\n");      }      VM_SysCall.sysHPMsetMode(hpm_info.mode);      if (hpm_thread_group) {	VM_SysCall.sysHPMsetProgramMyGroup();	VM_SysCall.sysHPMstartMyGroup();      }      //-#endif      // set up callbacks      setUpCallbacks();    }  }