# HG changeset patch # User Tom Rodriguez # Date 1410257663 -7200 # Node ID 899dd861f081cd83d320fb9d678cdbeb5f6605e8 # Parent 1d69b5c58bfefaf69dea2b34231555b57c99e52b Update comment about usages of streams diff -r 1d69b5c58bfe -r 899dd861f081 graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/FixedNodeProbabilityCache.java --- a/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/FixedNodeProbabilityCache.java Tue Sep 09 11:53:53 2014 +0200 +++ b/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/FixedNodeProbabilityCache.java Tue Sep 09 12:14:23 2014 +0200 @@ -104,7 +104,11 @@ if (current instanceof MergeNode) { MergeNode currentMerge = (MergeNode) current; NodeInputList currentForwardEnds = currentMerge.forwardEnds(); - // Using simple iteration instead of lambda as the lambda blows up the stack + /* + * Use simple iteration instead of streams, since the stream infrastructure adds + * many frames which causes the recursion to overflow the stack earlier than it + * would otherwise. + */ for (AbstractEndNode endNode : currentForwardEnds) { probability += applyAsDouble(endNode); }