changeset 34197:bef14f844171

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>
author twisti
date Wed, 18 Nov 2015 10:46:21 -1000
parents 72152eea3d39
children 7aba2adf6e1f
files hotspot/src/share/vm/compiler/compileTask.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
   }