src/hotspot/share/compiler/compileTask.cpp
changeset 54067 94d1e2c8fe01
parent 54015 cd701366fcf8
child 54150 5529640c5f67
equal deleted inserted replaced
54066:1dbe0c210134 54067:94d1e2c8fe01
   180   _code_handle->set_code(nm);
   180   _code_handle->set_code(nm);
   181   if (nm == NULL)  _code_handle = NULL;  // drop the handle also
   181   if (nm == NULL)  _code_handle = NULL;  // drop the handle also
   182 }
   182 }
   183 
   183 
   184 void CompileTask::mark_on_stack() {
   184 void CompileTask::mark_on_stack() {
       
   185   if (is_unloaded()) {
       
   186     return;
       
   187   }
   185   // Mark these methods as something redefine classes cannot remove.
   188   // Mark these methods as something redefine classes cannot remove.
   186   assert(!is_unloaded(), "unloaded method on the stack");
       
   187   _method->set_on_stack(true);
   189   _method->set_on_stack(true);
   188   if (_hot_method != NULL) {
   190   if (_hot_method != NULL) {
   189     _hot_method->set_on_stack(true);
   191     _hot_method->set_on_stack(true);
   190   }
   192   }
   191 }
   193 }