diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-10-25 22:01:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 22:01:56 (GMT) |
commit | c89a93271447ec65e83a1dc7605e62dbf272cafd (patch) | |
tree | baaf2c7ce7cea2581b0b33da5d1f5926238e7255 /Modules | |
parent | 6c83d9f4a72905d968418bef670bb3091d2744db (diff) | |
download | cpython-c89a93271447ec65e83a1dc7605e62dbf272cafd.zip cpython-c89a93271447ec65e83a1dc7605e62dbf272cafd.tar.gz cpython-c89a93271447ec65e83a1dc7605e62dbf272cafd.tar.bz2 |
bpo-35053: Define _PyTraceMalloc_NewReference in object.h (GH-10107)
_PyTraceMalloc_NewReference() is now called by _Py_NewReference(), so
move its definition to object.h. Moreover, define it even if
Py_LIMITED_API is defined, since _Py_NewReference() is also exposed
even if Py_LIMITED_API is defined.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Setup | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Setup b/Modules/Setup index a0622cc..fb16698 100644 --- a/Modules/Setup +++ b/Modules/Setup @@ -129,6 +129,9 @@ _io -DPy_BUILD_CORE -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fil faulthandler faulthandler.c # debug tool to trace memory blocks allocated by Python +# +# bpo-35053: The module must be builtin since _Py_NewReference() +# can call _PyTraceMalloc_NewReference(). _tracemalloc _tracemalloc.c hashtable.c # The rest of the modules listed in this file are all commented out by |