< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.virtual/src/org/graalvm/compiler/virtual/phases/ea/EffectList.java

Print this page

        

*** 169,181 **** --- 169,186 ---- public boolean isEmpty() { return size == 0; } public void apply(StructuredGraph graph, ArrayList<Node> obsoleteNodes, boolean cfgKills) { + boolean message = false; for (int i = 0; i < size(); i++) { Effect effect = effects[i]; if (effect.isCfgKill() == cfgKills) { + if (!message) { + message = true; + debug.log(cfgKills ? " ==== cfg kill effects" : " ==== effects"); + } try { effect.apply(graph, obsoleteNodes); } catch (Throwable t) { StringBuilder str = new StringBuilder(); toString(str, i);
*** 200,210 **** Object object = field.get(effect); if (object == this) { // Inner classes could capture the EffectList itself. continue; } ! str.append(first ? "" : ", ").append(format(object)); first = false; } catch (SecurityException | IllegalAccessException e) { throw new RuntimeException(e); } } --- 205,215 ---- Object object = field.get(effect); if (object == this) { // Inner classes could capture the EffectList itself. continue; } ! str.append(first ? "" : ", ").append(field.getName()).append("=").append(format(object)); first = false; } catch (SecurityException | IllegalAccessException e) { throw new RuntimeException(e); } }
< prev index next >