equal
deleted
inserted
replaced
250 _task_free_list = task->next(); |
250 _task_free_list = task->next(); |
251 task->set_next(NULL); |
251 task->set_next(NULL); |
252 } else { |
252 } else { |
253 task = new CompileTask(); |
253 task = new CompileTask(); |
254 DEBUG_ONLY(_num_allocated_tasks++;) |
254 DEBUG_ONLY(_num_allocated_tasks++;) |
255 assert (_num_allocated_tasks < 10000, "Leaking compilation tasks?"); |
255 assert (WhiteBoxAPI || _num_allocated_tasks < 10000, "Leaking compilation tasks?"); |
256 task->set_next(NULL); |
256 task->set_next(NULL); |
257 task->set_is_free(true); |
257 task->set_is_free(true); |
258 } |
258 } |
259 assert(task->is_free(), "Task must be free."); |
259 assert(task->is_free(), "Task must be free."); |
260 task->set_is_free(false); |
260 task->set_is_free(false); |