Each type object grows three new members:
/* Number of times an object of this type was allocated. */
/* Number of times an object of this type was deallocated. */
/* Highwater mark: the maximum value of tp_allocs - tp_frees so
* far; or, IOW, the largest number of objects of this type alive at
* the same time.
Following patches are part of enabling COUNT_ALLOCS at build time:
Adding option to enable COUNT_ALLOCS to configure as COUNT_ALLOCS is only documented feature, there is no flag to enable it in upstream:
Enabling verbose output of COUNT_ALLOCS only when env variable PYTHONDUMPCOUNTS is enabled:
Skipping tests when COUNT_ALLOCS is enabled:
Upstream report for skipping tests when COUNT_ALLOCS is enabled:
Reply from Dave Malcolm:
My hazy recollection is that at the time I was dealing with lots of
memory leak issues in Python 2, so I was keen to add as much help as
possible in tracking them down to Python 2 and Python 3.
I don't think this patch ever really bought us much, and it sounds like
there are better tools for this now, so feel free to drop the
Removed in http://pkgs.fedoraproject.org/cgit/python3.git/commit/?id=19aade22cbfa57dc500f5fa82229b4b9ed0b4c30
Also 05000-autotool-intermediates.patch was removed as it contained only changes needed for COUNT_ALLOCS.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.
More information and reason for this action is here: