--- old/src/share/vm/compiler/compileTask.cpp 2015-11-17 22:40:49.000000000 +0100 +++ new/src/share/vm/compiler/compileTask.cpp 2015-11-17 22:40:49.000000000 +0100 @@ -47,7 +47,7 @@ } else { task = new CompileTask(); DEBUG_ONLY(_num_allocated_tasks++;) - assert (WhiteBoxAPI || _num_allocated_tasks < 10000, "Leaking compilation tasks?"); + assert (WhiteBoxAPI || JVMCI_ONLY(UseJVMCICompiler ||) _num_allocated_tasks < 10000, "Leaking compilation tasks?"); task->set_next(NULL); task->set_is_free(true); }