8143151: [JVMCI] assertion for allocation of "too many" CompileTasks must take JVMCI into account
authortwisti
Wed, 18 Nov 2015 10:46:21 -1000
changeset 34197 bef14f844171
parent 34196 72152eea3d39
child 34198 7aba2adf6e1f
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>
hotspot/src/share/vm/compiler/compileTask.cpp
--- 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);
   }