We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b2c300 commit b1aac6dCopy full SHA for b1aac6d
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/object/PythonObjectFactory.java
@@ -167,7 +167,9 @@ private PythonContext getContext() {
167
}
168
169
private boolean reportAllocations() {
170
- return getContext() != null && allocationReporter != null;
+ // tfel: the allocation reporter has an assertion that it is a PE constant. How the reporter
171
+ // works is subject to change, but until such time we don't report allocations if it isn't
172
+ return getContext() != null && allocationReporter != null && CompilerDirectives.isPartialEvaluationConstant(allocationReporter);
173
174
175
/*
0 commit comments