8142435: [JVMCI] restore missing InstalledCode.version increment
authornever
Tue, 10 Nov 2015 11:49:42 -1000
changeset 34166 f95eaadb51da
parent 34165 66826441022f
child 34167 52add43cc691
8142435: [JVMCI] restore missing InstalledCode.version increment Reviewed-by: twisti
hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp
--- 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 {