Mercurial > hg > graal-jvmci-8
changeset 15511:ef1342e0f9f2
Merge (update state flag after initialization to allow other compiler threads to execute)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Mon, 05 May 2014 18:39:09 +0200 |
parents | a900caddcd60 (diff) 07fac8558d7b (current diff) |
children | d968c2db220b |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/cfg/ControlFlowGraph.java Fri May 02 17:03:10 2014 -0700 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/cfg/ControlFlowGraph.java Mon May 05 18:39:09 2014 +0200 @@ -200,7 +200,7 @@ private void connectBlocks() { for (Block block : reversePostOrder) { List<Block> predecessors = new ArrayList<>(4); - double probability = 0; + double probability = block.getBeginNode() instanceof StartNode ? 1D : 0D; for (Node predNode : block.getBeginNode().cfgPredecessors()) { Block predBlock = nodeToBlock.get(predNode); if (predBlock.getId() >= 0) {