File tree 2 files changed +4
-2
lines changed
src/main/java/org/truffleruby
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -678,6 +678,7 @@ public TruffleLogger getLogger() {
678
678
return logger ;
679
679
}
680
680
681
+ @ TruffleBoundary
681
682
public ConsoleHolder getConsoleHolder () {
682
683
if (consoleHolder == null ) {
683
684
synchronized (this ) {
Original file line number Diff line number Diff line change 10
10
package org .truffleruby .language .globals ;
11
11
12
12
import com .oracle .truffle .api .Assumption ;
13
- import com .oracle .truffle .api .CompilerDirectives . TruffleBoundary ;
13
+ import com .oracle .truffle .api .CompilerAsserts ;
14
14
import org .truffleruby .RubyLanguage ;
15
15
import org .truffleruby .collections .SharedIndicesMap .ContextArray ;
16
16
@@ -31,8 +31,9 @@ public final class GlobalVariableReader {
31
31
this .unaliasedStorage = globalVariablesArray .get (index );
32
32
}
33
33
34
- @ TruffleBoundary
35
34
public Object getValue () {
35
+ CompilerAsserts .neverPartOfCompilation ("Only behind @TruffleBoundary" );
36
+
36
37
if (globalVariableAliasedAssumption .isValid ()) {
37
38
return unaliasedStorage .getValue ();
38
39
} else {
You can’t perform that action at this time.
0 commit comments