Mercurial > hg > truffle
changeset 3595:97c1d4902e3f
IdealGraphVisualizer: in the server compiler scheduler, detect and handle any cycles in predecessor relations between nodes.
author | Peter Hofer <peter.hofer@jku.at> |
---|---|
date | Mon, 17 Oct 2011 16:29:11 +0200 |
parents | af1319bc4fd5 |
children | 3a0a26011371 |
files | src/share/tools/IdealGraphVisualizer/ServerCompiler/src/com/sun/hotspot/igv/servercompiler/ServerCompilerScheduler.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/ServerCompiler/src/com/sun/hotspot/igv/servercompiler/ServerCompilerScheduler.java Tue Oct 18 20:07:52 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/ServerCompiler/src/com/sun/hotspot/igv/servercompiler/ServerCompilerScheduler.java Mon Oct 17 16:29:11 2011 +0200 @@ -111,7 +111,12 @@ p = parent; break; } + p = p.preds.get(0); + if (p == proj) { + // Cycle, stop + break; + } if (p.block == null) { p.block = block;