OpenJDK / jdk / hs
changeset 48042:f04a848c6f00
8192756: SIGSEGV in nmethod::new_native_nmethod
Summary: Add the missing null check
Reviewed-by: kvn, thartmann
author | iveresov |
---|---|
date | Thu, 30 Nov 2017 08:35:33 -0800 |
parents | 2659c4fe8ea7 |
children | cb5d2d4453d0 |
files | src/hotspot/share/code/nmethod.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/share/code/nmethod.cpp Thu Nov 30 21:24:52 2017 +0530 +++ b/src/hotspot/share/code/nmethod.cpp Thu Nov 30 08:35:33 2017 -0800 @@ -438,14 +438,14 @@ basic_lock_sp_offset, oop_maps); 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) { + // verify nmethod + debug_only(nm->verify();) // might block + nm->log_new_nmethod(); + nm->make_in_use(); } - - nm->make_in_use(); return nm; }