temp.addElement(masterPlan[i]);
temp.add(masterPlan[i]);
  public static OPT_OptimizationPlanElement[] createOptimizationPlan(OPT_Options options) {    if (masterPlan == null) {      initializeMasterPlan();    }    Vector temp = new Vector(masterPlan.length);    for (int i = 0; i < masterPlan.length; i++) {      if (masterPlan[i].shouldPerform(options)) {        temp.addElement(masterPlan[i]);      }    }    if (VM.writingBootImage)      masterPlan = null;  // avoid problems with classes not being in bootimage.    return finalize(temp);  }