--- old/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp 2017-10-27 22:55:43.000000000 +0200 +++ new/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp 2017-10-27 22:55:43.000000000 +0200 @@ -1039,7 +1039,7 @@ if (result != JVMCIEnv::ok) { assert(cb == NULL, "should be"); } else { - if (!installed_code_handle.is_null()) { + if (installed_code_handle.not_null()) { assert(installed_code_handle->is_a(InstalledCode::klass()), "wrong type"); nmethod::invalidate_installed_code(installed_code_handle, CHECK_0); { @@ -1059,12 +1059,6 @@ } } nmethod* nm = cb->as_nmethod_or_null(); - if (nm != NULL && installed_code_handle->is_scavengable()) { - assert(nm->detect_scavenge_root_oops(), "nm should be scavengable if installed_code is scavengable"); - if (!UseG1GC) { - assert(nm->on_scavenge_root_list(), "nm should be on scavengable list"); - } - } } } return result;