equal
deleted
inserted
replaced
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 } |