Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ Tal Einat
Eric Eisner
Andrew Eland
Julien Élie
Eduardo Elizondo
Lance Ellinghaus
Daniel Ellis
Phil Elson
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the python debug build when using COUNT_ALLOCS.
2 changes: 1 addition & 1 deletion Objects/listobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static void
show_alloc(void)
{
PyInterpreterState *interp = PyThreadState_GET()->interp;
if (!inter->core_config.show_alloc_count) {
if (!interp->core_config.show_alloc_count) {
return;
}

Expand Down
3 changes: 2 additions & 1 deletion Objects/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ void
dump_counts(FILE* f)
{
PyInterpreterState *interp = PyThreadState_GET()->interp;
if (!inter->core_config.show_alloc_count) {
if (!interp->core_config.show_alloc_count) {
return;
}

PyTypeObject *tp;
for (tp = type_list; tp; tp = tp->tp_next)
fprintf(f, "%s alloc'd: %" PY_FORMAT_SIZE_T "d, "
"freed: %" PY_FORMAT_SIZE_T "d, "
Expand Down
2 changes: 1 addition & 1 deletion Objects/tupleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void
show_track(void)
{
PyInterpreterState *interp = PyThreadState_GET()->interp;
if (!inter->core_config.show_alloc_count) {
if (!interp->core_config.show_alloc_count) {
return;
}

Expand Down