Mercurial > hg > graal-compiler
changeset 21174:d5c1f00373c7
Relax expensive assert in IGV
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Fri, 01 May 2015 17:02:38 -0700 |
parents | 12a32123be43 |
children | 4518107de3db |
files | src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/InputBlock.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/InputBlock.java Fri May 01 16:51:47 2015 -0700 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/InputBlock.java Fri May 01 17:02:38 2015 -0700 @@ -90,7 +90,9 @@ public void addNode(int id) { InputNode node = graph.getNode(id); assert node != null; - assert !nodes.contains(node) : "duplicate : " + node; + // nodes.contains(node) is too expensive for large graphs so + // just make sure the Graph doesn't know it yet. + assert graph.getBlock(id) == null : "duplicate : " + node; graph.setBlock(node, this); nodes.add(node); }