diff src/share/vm/graal/graalCodeInstaller.cpp @ 15264:29e3ba750c9e

graalCodeInstaller translate BytecodeFrame::BEFORE_BCI into SynchronizationEntryBCI
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 22 Apr 2014 15:12:38 +0200
parents 7a9531f50cd8
children a20be10ad437
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp	Tue Apr 22 17:38:21 2014 +0200
+++ b/src/share/vm/graal/graalCodeInstaller.cpp	Tue Apr 22 15:12:38 2014 +0200
@@ -676,8 +676,11 @@
   oop hotspot_method = BytecodePosition::method(frame);
   Method* method = getMethodFromHotSpotMethod(hotspot_method);
   jint bci = BytecodePosition::bci(frame);
+  if (bci == BytecodeFrame::BEFORE_BCI()) {
+    bci = SynchronizationEntryBCI;
+  }
   bool reexecute;
-  if (bci == -1 || bci == -2){
+  if (bci == SynchronizationEntryBCI){
      reexecute = false;
   } else {
     Bytecodes::Code code = Bytecodes::java_code_at(method, method->bcp_from(bci));