File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/object Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -154,20 +154,20 @@ public NodeCost getCost() {
154
154
}
155
155
156
156
public PythonCore getCore () {
157
- return getContext ().getCore ();
157
+ return getContextRef (). get ().getCore ();
158
158
}
159
159
160
- private PythonContext getContext () {
160
+ private ContextReference < PythonContext > getContextRef () {
161
161
if (contextRef == null ) {
162
162
CompilerDirectives .transferToInterpreterAndInvalidate ();
163
163
contextRef = PythonLanguage .getContextRef ();
164
164
allocationReporter = contextRef .get ().getEnv ().lookup (AllocationReporter .class );
165
165
}
166
- return contextRef . get () ;
166
+ return contextRef ;
167
167
}
168
168
169
169
private boolean reportAllocations () {
170
- return getContext () != null && allocationReporter != null ;
170
+ return getContextRef () != null && allocationReporter != null ;
171
171
}
172
172
173
173
/*
You can’t perform that action at this time.
0 commit comments