< prev index next >

src/hotspot/share/compiler/compileTask.cpp

Print this page

        

@@ -180,12 +180,14 @@
   _code_handle->set_code(nm);
   if (nm == NULL)  _code_handle = NULL;  // drop the handle also
 }
 
 void CompileTask::mark_on_stack() {
+  if (is_unloaded()) {
+    return;
+  }
   // Mark these methods as something redefine classes cannot remove.
-  assert(!is_unloaded(), "unloaded method on the stack");
   _method->set_on_stack(true);
   if (_hot_method != NULL) {
     _hot_method->set_on_stack(true);
   }
 }
< prev index next >