diff -r 7f9553bedfd5 -r 3a294e483abc src/share/vm/c1/c1_Canonicalizer.cpp --- a/src/share/vm/c1/c1_Canonicalizer.cpp Sat Sep 11 15:21:37 2010 -0700 +++ b/src/share/vm/c1/c1_Canonicalizer.cpp Mon Sep 13 12:10:49 2010 -0700 @@ -673,6 +673,8 @@ } else if (l->as_InstanceOf() != NULL) { // NOTE: Code permanently disabled for now since it leaves the old InstanceOf // instruction in the graph (it is pinned). Need to fix this at some point. + // It should also be left in the graph when generating a profiled method version or Goto + // has to know that it was an InstanceOf. return; // pattern: If ((obj instanceof klass) cond rc) => simplify to: IfInstanceOf or: Goto InstanceOf* inst = l->as_InstanceOf();