mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8192756: SIGSEGV in nmethod::new_native_nmethod
Add the missing null check Reviewed-by: kvn, thartmann
This commit is contained in:
parent
42d3f8d610
commit
d6aded9c68
1 changed files with 5 additions and 5 deletions
|
@ -438,14 +438,14 @@ nmethod* nmethod::new_native_nmethod(const methodHandle& method,
|
||||||
basic_lock_sp_offset, oop_maps);
|
basic_lock_sp_offset, oop_maps);
|
||||||
NOT_PRODUCT(if (nm != NULL) native_nmethod_stats.note_native_nmethod(nm));
|
NOT_PRODUCT(if (nm != NULL) native_nmethod_stats.note_native_nmethod(nm));
|
||||||
}
|
}
|
||||||
// verify nmethod
|
|
||||||
debug_only(if (nm) nm->verify();) // might block
|
|
||||||
|
|
||||||
if (nm != NULL) {
|
if (nm != NULL) {
|
||||||
nm->log_new_nmethod();
|
// verify nmethod
|
||||||
}
|
debug_only(nm->verify();) // might block
|
||||||
|
|
||||||
nm->make_in_use();
|
nm->log_new_nmethod();
|
||||||
|
nm->make_in_use();
|
||||||
|
}
|
||||||
return nm;
|
return nm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue