7174884: C1: failures after 7171890: assert(cur_state != NULL) failed: state_before must be set
Reviewed-by: kvn
--- 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);