hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp
changeset 13952 e3cf184080bc
parent 13891 35dabd293e56
child 17000 11bf92e571a2
equal deleted inserted replaced
13918:b01a48301e67 13952:e3cf184080bc
   154 }
   154 }
   155 
   155 
   156 // Called with the queue locked and with at least one element
   156 // Called with the queue locked and with at least one element
   157 CompileTask* AdvancedThresholdPolicy::select_task(CompileQueue* compile_queue) {
   157 CompileTask* AdvancedThresholdPolicy::select_task(CompileQueue* compile_queue) {
   158   CompileTask *max_task = NULL;
   158   CompileTask *max_task = NULL;
   159   Method* max_method;
   159   Method* max_method = NULL;
   160   jlong t = os::javaTimeMillis();
   160   jlong t = os::javaTimeMillis();
   161   // Iterate through the queue and find a method with a maximum rate.
   161   // Iterate through the queue and find a method with a maximum rate.
   162   for (CompileTask* task = compile_queue->first(); task != NULL;) {
   162   for (CompileTask* task = compile_queue->first(); task != NULL;) {
   163     CompileTask* next_task = task->next();
   163     CompileTask* next_task = task->next();
   164     Method* method = task->method();
   164     Method* method = task->method();