Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java @ 21891:ccaf9eb1f5eb
Findbugs fix
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 09 Jun 2015 18:48:06 -0700 |
parents | 894f82515e38 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java Tue Jun 09 15:20:30 2015 -0700 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java Tue Jun 09 18:48:06 2015 -0700 @@ -410,9 +410,10 @@ private static void setupToolDemos() { if (statementCounts || coverage) { if (registeredASTProber == null) { - registeredASTProber = new SLStandardASTProber(); + final ASTProber newProber = new SLStandardASTProber(); // This should be registered on the TruffleVM - Probe.registerASTProber(registeredASTProber); + Probe.registerASTProber(newProber); + registeredASTProber = newProber; } } if (nodeExecCounts) {