int   [] hotMethods = new int[numHotMethods];
VM_CompiledMethod[] hotMethods = new VM_CompiledMethod[numHotMethods];
  public final synchronized VM_MethodCountSet collectHotMethods(int optLevel, 								double threshold) {    if (DEBUG) validityCheck();    Vector collect = new Vector();    collectHotOptMethodsInternal(1, collect, hotnessToCounts(threshold), optLevel);    // now package the data into the form the caller expects.    int numHotMethods = collect.size();    double[] numCounts = new double[numHotMethods];    int   [] hotMethods = new int[numHotMethods];    for (int i=0; i<numHotMethods; i++) {      VM_HotMethodEvent event = (VM_HotMethodEvent)collect.elementAt(i);      hotMethods[i] = event.getCMID();      numCounts[i] = event.getNumSamples();    }    return new VM_MethodCountSet(hotMethods, numCounts);  }