src/share/vm/compiler/compileBroker.cpp

Print this page

        

*** 250,260 **** _task_free_list = task->next(); task->set_next(NULL); } else { task = new CompileTask(); DEBUG_ONLY(_num_allocated_tasks++;) ! assert (_num_allocated_tasks < 10000, "Leaking compilation tasks?"); task->set_next(NULL); task->set_is_free(true); } assert(task->is_free(), "Task must be free."); task->set_is_free(false); --- 250,260 ---- _task_free_list = task->next(); task->set_next(NULL); } else { task = new CompileTask(); DEBUG_ONLY(_num_allocated_tasks++;) ! assert (WhiteBoxAPI || WhiteBox::compilation_locked || _num_allocated_tasks < 10000, "Leaking compilation tasks?"); task->set_next(NULL); task->set_is_free(true); } assert(task->is_free(), "Task must be free."); task->set_is_free(false);