8142435: [JVMCI] restore missing InstalledCode.version increment
Reviewed-by: twisti
--- a/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp Tue Nov 10 10:34:39 2015 -1000
+++ b/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp Tue Nov 10 11:49:42 2015 -1000
@@ -690,6 +690,7 @@
assert(installed_code_handle->is_a(InstalledCode::klass()), "wrong type");
CompilerToVM::invalidate_installed_code(installed_code_handle, CHECK_0);
InstalledCode::set_address(installed_code_handle, (jlong) cb);
+ InstalledCode::set_version(installed_code_handle, InstalledCode::version(installed_code_handle) + 1);
if (cb->is_nmethod()) {
InstalledCode::set_entryPoint(installed_code_handle, (jlong) cb->as_nmethod_or_null()->verified_entry_point());
} else {