Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultTruffleRuntime.java @ 19710:48eeda5dfdbf
Move linking of RootNode to CallTarget to ensure final semantics.
* "this" was published before complete initialization by being in the constructor.
* Make the constructor protected where possible.
author | Benoit Daloze <benoit.daloze@jku.at> |
---|---|
date | Fri, 06 Mar 2015 18:51:31 +0100 |
parents | b54b548047ac |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultTruffleRuntime.java Thu Mar 05 14:19:23 2015 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultTruffleRuntime.java Fri Mar 06 18:51:31 2015 +0100 @@ -55,6 +55,7 @@ @Override public RootCallTarget createCallTarget(RootNode rootNode) { DefaultCallTarget target = new DefaultCallTarget(rootNode); + rootNode.setCallTarget(target); callTargets.put(target, null); return target; }