7174884: C1: failures after 7171890: assert(cur_state != NULL) failed: state_before must be set
authortwisti
Wed, 06 Jun 2012 15:57:37 -0700
changeset 12950 ab4f4afb3988
parent 12949 e125ba4c16bd
child 12951 fd152ca7ec9a
7174884: C1: failures after 7171890: assert(cur_state != NULL) failed: state_before must be set Reviewed-by: kvn
hotspot/src/share/vm/c1/c1_Canonicalizer.cpp
--- a/hotspot/src/share/vm/c1/c1_Canonicalizer.cpp	Tue Jun 05 10:15:27 2012 +0200
+++ b/hotspot/src/share/vm/c1/c1_Canonicalizer.cpp	Wed Jun 06 15:57:37 2012 -0700
@@ -466,7 +466,7 @@
       if (t->is_klass()) {
         // substitute cls.isInstance(obj) of a constant Class into
         // an InstantOf instruction
-        InstanceOf* i = new InstanceOf(t->as_klass(), x->argument_at(1), x->state());
+        InstanceOf* i = new InstanceOf(t->as_klass(), x->argument_at(1), x->state_before());
         set_canonical(i);
         // and try to canonicalize even further
         do_InstanceOf(i);