8245877: assert(_value != __null) failed: resolving NULL _value in JvmtiExport::post_compiled_method_load

Reviewed-by: sspitsyn, dholmes, coleenp
This commit is contained in:
Leonid Mesnik 2021-06-30 02:05:25 +00:00
parent ee526a2ea8
commit b969136b9f
4 changed files with 6 additions and 4 deletions

View file

@ -1608,6 +1608,8 @@ void nmethod::post_compiled_method_load_event(JvmtiThreadState* state) {
if (is_not_entrant() && can_convert_to_zombie()) {
return;
}
// Ensure the sweeper can't collect this nmethod until it become "active" with JvmtiThreadState::nmethods_do.
mark_as_seen_on_stack();
}
// This is a bad time for a safepoint. We don't want