diff graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2669:405e7947a940

Fixed RegisterFinalizer stateBefore.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 12 May 2011 16:55:03 +0200
parents 440ceca8e3d7
children d8601d421b96
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java	Wed May 11 18:16:01 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java	Thu May 12 16:55:03 2011 +0200
@@ -812,7 +812,9 @@
 
         if (needsCheck) {
             // append a call to the finalizer registration
-            append(new RegisterFinalizer(frameState.loadLocal(0), graph));
+            RegisterFinalizer r = new RegisterFinalizer(frameState.loadLocal(0), graph);
+            append(r);
+            r.setStateBefore(frameState.create(bci()));
             C1XMetrics.InlinedFinalizerChecks++;
         }
     }