changeset 9454:78ddd55df52b

8142435: [JVMCI] restore missing InstalledCode.version increment Reviewed-by: twisti
author never
date Tue, 10 Nov 2015 11:49:42 -1000
parents 4dff71612c99
children 1474303fbb0f
files src/share/vm/jvmci/jvmciCompilerToVM.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciCompilerToVM.cpp	Tue Nov 10 10:34:39 2015 -1000
+++ b/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 {