8046286: assert: Do not add task if compilation is turned off forever
Summary: Remove the unnecessary and missleading assert
Reviewed-by: iveresov
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp Mon Jun 16 16:27:41 2014 -0700
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp Mon Jun 23 08:40:31 2014 +0200
@@ -589,11 +589,10 @@
/**
- * Add a CompileTask to a CompileQueue
+ * Add a CompileTask to a CompileQueue.
*/
void CompileQueue::add(CompileTask* task) {
assert(lock()->owned_by_self(), "must own lock");
- assert(!CompileBroker::is_compilation_disabled_forever(), "Do not add task if compilation is turned off forever");
task->set_next(NULL);
task->set_prev(NULL);