Skip to content

Commit be1f8b7

Browse files
committed
[hotfix] Only report allocations if the reporter is active
PullRequest: graalpython/221
2 parents 380a21f + bbdb3d8 commit be1f8b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/object/PythonObjectFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private ContextReference<PythonContext> getContextRef() {
167167
}
168168

169169
private boolean reportAllocations() {
170-
return getContextRef() != null && allocationReporter != null;
170+
return getContextRef() != null && allocationReporter != null && allocationReporter.isActive();
171171
}
172172

173173
/*

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def graalpython_gate_runner(args, tasks):
420420
apprepo = os.environ["GRAALPYTHON_APPTESTS_REPO_URL"]
421421
_apptest_suite = _suite.import_suite(
422422
"graalpython-apptests",
423-
version="f40fcf3af008d30a67e0dbc325a0d90f1e68f0c0",
423+
version="006db2cfd79a51ba49e23a42629da13a54b87451",
424424
urlinfos=[mx.SuiteImportURLInfo(mx_urlrewrites.rewriteurl(apprepo), "git", mx.vc_system("git"))]
425425
)
426426
mx.run_mx(["-p", _apptest_suite.dir, "graalpython-apptests"])

0 commit comments

Comments
 (0)