7104177: Tiered: -XX:+PrintCanonicalization doesn't work with -XX:+TieredCompilation
authoriveresov
Thu, 27 Oct 2011 14:40:25 -0700
changeset 10974 ace1746b24ab
parent 10973 3b6e9c685073
child 10975 446510be531a
7104177: Tiered: -XX:+PrintCanonicalization doesn't work with -XX:+TieredCompilation Summary: Initialize printable_bci of instruction when passed to Canonicalizer Reviewed-by: kvn, never
hotspot/src/share/vm/c1/c1_Canonicalizer.hpp
--- a/hotspot/src/share/vm/c1/c1_Canonicalizer.hpp	Thu Oct 27 09:39:24 2011 -0700
+++ b/hotspot/src/share/vm/c1/c1_Canonicalizer.hpp	Thu Oct 27 14:40:25 2011 -0700
@@ -51,6 +51,7 @@
 
  public:
   Canonicalizer(Compilation* c, Value x, int bci) : _compilation(c), _canonical(x), _bci(bci) {
+    NOT_PRODUCT(x->set_printable_bci(bci));
     if (CanonicalizeNodes) x->visit(this);
   }
   Value canonical() const                        { return _canonical; }