8143151: [JVMCI] assertion for allocation of "too many" CompileTasks must take JVMCI into account
Reviewed-by: iignatyev, twisti
Contributed-by: Doug Simon <doug.simon@oracle.com>
--- a/hotspot/src/share/vm/compiler/compileTask.cpp Wed Nov 18 09:43:31 2015 -1000
+++ b/hotspot/src/share/vm/compiler/compileTask.cpp Wed Nov 18 10:46:21 2015 -1000
@@ -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);
}