Mercurial > hg > graal-compiler
changeset 17062:a6277ae87f0e
ensure NodeRefIterator.Empty.hasNext() returns false
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 08 Sep 2014 13:49:40 +0200 |
parents | 75dd27a1d79f |
children | 75a4acd33159 0bcefb0f8488 |
files | graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeRefIterator.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeRefIterator.java Mon Sep 08 13:26:52 2014 +0200 +++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeRefIterator.java Mon Sep 08 13:49:40 2014 +0200 @@ -102,6 +102,8 @@ // This must be set here to prevent multiple threads racing to // call forward() which never needs to be done for Empty. this.needsForward = false; + // Ensure hasNext() will always return false. + this.index = 0; } /**