Mercurial > hg > graal-compiler
changeset 14088:dd2c23065f47
Truffle: remove call node notification loop (O(n^2))
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Thu, 06 Mar 2014 16:12:22 +0100 |
parents | ce79de7da9ab |
children | 280332c0180e |
files | graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java Tue Mar 04 12:59:37 2014 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java Thu Mar 06 16:12:22 2014 +0100 @@ -128,13 +128,7 @@ /* Internal API. Do not use. */ void addCachedCallNode(CallNode callSite) { - if (cachedCallNodes.add(callSite)) { - for (CallNode callNode : cachedCallNodes) { - if (callSite != callNode) { - callNode.notifyCallNodeAdded(); - } - } - } + this.cachedCallNodes.add(callSite); } /* Internal API. Do not use. */