changeset 39430:ab7acda033f4

8139379: Tests fail with assert(nm->insts_contains(original_pc)) failed: original PC must be in nmethod Reviewed-by: mgronlun, neliasso
author rbackman
date Wed, 15 Jun 2016 09:46:15 +0200
parents 2c9cde29cd3f
children cb1b2538c4b2
files hotspot/src/share/vm/code/compiledMethod.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/code/compiledMethod.cpp	Mon Jun 20 09:32:44 2016 +0200
+++ b/hotspot/src/share/vm/code/compiledMethod.cpp	Wed Jun 15 09:46:15 2016 +0200
@@ -63,7 +63,7 @@
 bool CompiledMethod::is_deopt_entry(address pc) {
   return pc == deopt_handler_begin()
 #if INCLUDE_JVMCI
-    || pc == (deopt_handler_begin() + NativeCall::instruction_size)
+    || (is_compiled_by_jvmci() && pc == (deopt_handler_begin() + NativeCall::instruction_size))
 #endif
     ;
 }