equal
deleted
inserted
replaced
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(); |