diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-11 11:01:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-11 11:01:15 (GMT) |
commit | 4c409beb4c360a73d054f37807d3daad58d1b567 (patch) | |
tree | 03e835b35a2c910cd4793106eee2004212644746 /Misc/NEWS.d/next/C API | |
parent | 536a35b3f14888999f1ffa5be7239d0c26b73d7a (diff) | |
download | cpython-4c409beb4c360a73d054f37807d3daad58d1b567.zip cpython-4c409beb4c360a73d054f37807d3daad58d1b567.tar.gz cpython-4c409beb4c360a73d054f37807d3daad58d1b567.tar.bz2 |
bpo-36389: Change PyMem_SetupDebugHooks() constants (GH-12782)
Modify CLEANBYTE, DEADDYTE and FORBIDDENBYTE constants: use 0xCD,
0xDD and 0xFD, rather than 0xCB, 0xBB and 0xFB, to use the same byte
patterns than Windows CRT debug malloc() and free().
Diffstat (limited to 'Misc/NEWS.d/next/C API')
-rw-r--r-- | Misc/NEWS.d/next/C API/2019-04-11-12-20-35.bpo-36389.P9QFoP.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2019-04-11-12-20-35.bpo-36389.P9QFoP.rst b/Misc/NEWS.d/next/C API/2019-04-11-12-20-35.bpo-36389.P9QFoP.rst new file mode 100644 index 0000000..f2b507a --- /dev/null +++ b/Misc/NEWS.d/next/C API/2019-04-11-12-20-35.bpo-36389.P9QFoP.rst @@ -0,0 +1,5 @@ +Change the value of ``CLEANBYTE``, ``DEADDYTE`` and ``FORBIDDENBYTE`` internal +constants used by debug hooks on Python memory allocators +(:c:func:`PyMem_SetupDebugHooks` function). Byte patterns ``0xCB``, ``0xDB`` +and ``0xFB`` have been replaced with ``0xCD``, ``0xDD`` and ``0xFD`` to use the +same values than Windows CRT debug ``malloc()`` and ``free()``. |