if (DEBUG||report) { VM.sysWrite("Reseting profiling information\n"); } VM_RuntimeMeasurements.resetReportableObjects();
if (VM.BuildForAdaptiveSystem) {  if (DEBUG||report) { VM.sysWrite("Reseting profiling information\n"); } VM_RuntimeMeasurements.resetReportableObjects(); }
  public static void recompileAllDynamicallyLoadedMethods(boolean report) {    int numMethods = VM_CompiledMethods.numCompiledMethods();    // To avoid the assertion for unused cmids    VM_CompiledMethod[] compiledMethods = VM_CompiledMethods.getCompiledMethods();    for (int cmid=1; cmid<numMethods; cmid++) {      VM_CompiledMethod cpMeth = compiledMethods[cmid];      if (cpMeth == null) {        if (DEBUG) VM.sysWrite("Not recompiling method ID ", cmid,                               " because it has no compiledMethod\n");      } else {        VM_Method meth = cpMeth.getMethod();        if (DEBUG) VM.sysWrite("numMethods: "+ numMethods +", Inspecting cpMethod "+ cpMeth+ ", method: "+cpMeth.getMethod()+ "("+cmid+")\n");        if (cpMeth.getCompilerType() == VM_CompiledMethod.TRAP) {          if (DEBUG) VM.sysWrite("Not recompiling compiled method "+cpMeth+"("+cmid+") because it a TRAP, i.e. has no source code\n");        } else {          if (meth.getDeclaringClass().isResolved()) {            if (meth.getDeclaringClass().isInBootImage()) {              if (DEBUG) VM.sysWrite("Not recompiling bootimage method "+meth+                                     "("+cmid+")\n");            } else {              if (meth.isAbstract()) {                if (DEBUG) VM.sysWrite("Not recompiling abstract method "+meth+"("+cmid+")\n");              } else if (meth.isNative()) {                if (DEBUG) VM.sysWrite("Not recompiling native method "+meth+"("+cmid+")\n");              } else {                if (DEBUG||report) VM.sysWrite("Recompiling "+meth+"("+cmid+") ");                recompile((VM_NormalMethod)meth);                if (DEBUG||report) VM.sysWrite("...done\n");              }            }          } else {            if (DEBUG) VM.sysWrite("Class not resolved"+meth+"("+cmid+")\n");          }        }      }    }    //-#if RVM_WITH_ADAPTIVE_SYSTEM    // clear profiling counter    if (DEBUG||report) { VM.sysWrite("Reseting profiling information\n"); }    VM_RuntimeMeasurements.resetReportableObjects();    //-#endif  }