--- old/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp 2017-11-02 08:30:07.000000000 +0100 +++ new/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp 2017-11-02 08:30:07.000000000 +0100 @@ -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); { @@ -1058,13 +1058,6 @@ HotSpotInstalledCode::set_codeSize(installed_code_handle, cb->code_size()); } } - 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;