diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java @ 19488:2f676c3ca430

Truffle/Instrumentation: fix some optimization bugs; instrumentation PE tests now succeed after recent compiler work
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Wed, 18 Feb 2015 16:07:09 -0800
parents 128586040207
children 745ecef4c9cd
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java	Wed Feb 18 21:55:31 2015 +0100
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java	Wed Feb 18 16:07:09 2015 -0800
@@ -28,6 +28,7 @@
 import java.util.*;
 
 import com.oracle.truffle.api.*;
+import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
 import com.oracle.truffle.api.nodes.*;
 import com.oracle.truffle.api.source.*;
 import com.oracle.truffle.api.utilities.*;
@@ -108,7 +109,7 @@
      * The tag trap is a global setting; it only affects {@linkplain Probe probes} with the
      * {@linkplain SyntaxTag tag} specified .
      */
-    private static SyntaxTagTrap globalTagTrap = null;
+    @CompilationFinal private static SyntaxTagTrap globalTagTrap = null;
 
     /**
      * Enables instrumentation at selected nodes in all subsequently constructed ASTs.