<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/obmalloc.c, branch 3.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/obmalloc.c?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/obmalloc.c?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2019-12-27T03:10:52Z</updated>
<entry>
<title>closes bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702)</title>
<updated>2019-12-27T03:10:52Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-12-27T03:10:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5dd1909680a5be76397b19bc235a8205b79787c7'/>
<id>urn:sha1:5dd1909680a5be76397b19bc235a8205b79787c7</id>
<content type='text'>
(cherry picked from commit c0052f3fe3d19820b2d4f76e383035439affe32c)

Co-authored-by: Batuhan Taşkaya &lt;47358913+isidentical@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-36389: Backport debug enhancements from master (GH-16796)</title>
<updated>2019-10-15T01:06:16Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-15T01:06:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f82ce5b1b12873b65927149a016be6a7c65e979d'/>
<id>urn:sha1:f82ce5b1b12873b65927149a016be6a7c65e979d</id>
<content type='text'>
* bpo-36389: _PyObject_CheckConsistency() available in release mode (GH-16612)

bpo-36389, bpo-38376: The _PyObject_CheckConsistency() function is
now also available in release mode. For example, it can be used to
debug a crash in the visit_decref() function of the GC.

Modify the following functions to also work in release mode:

* _PyDict_CheckConsistency()
* _PyObject_CheckConsistency()
* _PyType_CheckConsistency()
* _PyUnicode_CheckConsistency()

Other changes:

* _PyMem_IsPtrFreed(ptr) now also returns 1 if ptr is NULL
  (equals to 0).
* _PyBytesWriter_CheckConsistency() now returns 1 and is only used
  with assert().
* Reorder _PyObject_Dump() to write safe fields first, and only
  attempt to render repr() at the end.

(cherry picked from commit 6876257eaabdb30f27ebcbd7d2557278ce2e5705)

* bpo-36389: Fix _PyBytesWriter in release mode (GH-16624)

Fix _PyBytesWriter API when Python is built in release mode with
assertions.

(cherry picked from commit 60ec6efd96d95476fe5e38c491491add04f026e5)

* bpo-38070: Enhance visit_decref() debug trace (GH-16631)

subtract_refs() now pass the parent object to visit_decref() which
pass it to _PyObject_ASSERT(). So if the "is freed" assertion fails,
the parent is used in debug trace, rather than the freed object. The
parent object is more likely to contain useful information. Freed
objects cannot be inspected are are displayed as "&lt;object at xxx is
freed&gt;" with no other detail.

(cherry picked from commit 4d5f94b8cd20f804c7868c5395a15aa6032f874c)

* Fix also a typo in PYMEM_DEADBYTE macro comment

* bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629)

Add a newline between the verbose object dump and the Py_FatalError()
logs for readability.

(cherry picked from commit 7775349895088a7ae68cecf0c74cf817f15e2c74)
</content>
</entry>
<entry>
<title>bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342)</title>
<updated>2019-08-20T12:44:32Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-08-20T12:44:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=30e5aff5fb0e3841107ddd4539a1f5b8521c80fb'/>
<id>urn:sha1:30e5aff5fb0e3841107ddd4539a1f5b8521c80fb</id>
<content type='text'>
pymalloc_alloc() now returns directly the pointer, return NULL on
memory allocation error.

allocate_from_new_pool() already uses NULL as marker for "allocation
failed".

(cherry picked from commit 18f8dcfa10d8a858b152d12a9ad8fa83b7e967f0)</content>
</entry>
<entry>
<title>bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096)</title>
<updated>2019-08-14T10:08:46Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-08-14T10:08:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=364a1d3125af6c0ff0a4bd2c8afe70fd38f30456'/>
<id>urn:sha1:364a1d3125af6c0ff0a4bd2c8afe70fd38f30456</id>
<content type='text'>
Fix the following warning with GCC 4.8.5:
Objects/obmalloc.c: warning: ‘no_sanitize_thread’ attribute directive ignored
(cherry picked from commit 7e479c82218450255572e3f5fa1549dc283901ea)

Co-authored-by: Hai Shi &lt;shihai1992@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-37029:  keep usable_arenas in sorted order without searching (#13612)</title>
<updated>2019-06-01T02:16:04Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2019-06-01T02:16:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1c263e39c4ed28225a7dc8ca1f24953225ac48ca'/>
<id>urn:sha1:1c263e39c4ed28225a7dc8ca1f24953225ac48ca</id>
<content type='text'>
This adds a vector of "search fingers" so that usable_arenas can be kept in sorted order (by number of free pools) via constant-time operations instead of linear search.

This should reduce worst-case time for reclaiming a great many objects from O(A**2) to O(A), where A is the number of arenas.  See bpo-37029.</content>
</entry>
<entry>
<title>bpo-36763: Add PyMemAllocatorName (GH-13387)</title>
<updated>2019-05-17T13:20:52Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-05-17T13:20:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b16b4e45923f4e4dfd8e970ae4e6a934faf73b79'/>
<id>urn:sha1:b16b4e45923f4e4dfd8e970ae4e6a934faf73b79</id>
<content type='text'>
* Add PyMemAllocatorName enum
* _PyPreConfig.allocator type becomes PyMemAllocatorName, instead of
  char*
* Remove _PyPreConfig_Clear()
* Add _PyMem_GetAllocatorName()
* Rename _PyMem_GetAllocatorsName() to
  _PyMem_GetCurrentAllocatorName()
* Remove _PyPreConfig_SetAllocator(): just call
  _PyMem_SetupAllocators() directly, we don't have do reallocate the
  configuration with the new allocator anymore!
* _PyPreConfig_Write() parameter becomes const, as it should be in
  the first place!</content>
</entry>
<entry>
<title>bpo-27987: pymalloc: align by 16bytes on 64bit platform (GH-12850)</title>
<updated>2019-05-14T09:51:15Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2019-05-14T09:51:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f0be4bbb9b3cee876249c23f2ae6f38f43fa7495'/>
<id>urn:sha1:f0be4bbb9b3cee876249c23f2ae6f38f43fa7495</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-36594: Fix incorrect use of %p in format strings (GH-12769)</title>
<updated>2019-05-06T16:56:50Z</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2019-05-06T16:56:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1a2252ed39bc1b71cdaa935d7726d82909af93ab'/>
<id>urn:sha1:1a2252ed39bc1b71cdaa935d7726d82909af93ab</id>
<content type='text'>
In addition, fix some other minor violations of C99.</content>
</entry>
<entry>
<title>bpo-36611: Disable serialno field of debug memory allocators (#12796)</title>
<updated>2019-04-12T19:54:06Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-04-12T19:54:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e8f9acf03484c6c3f163f04a76321419369c28aa'/>
<id>urn:sha1:e8f9acf03484c6c3f163f04a76321419369c28aa</id>
<content type='text'>
Omit serialno field from debug hooks on Python memory allocators to
reduce the memory footprint by 5%.

Enable tracemalloc to get the traceback where a memory block has been
allocated when a fatal memory error is logged to decide where to put
a breakpoint.

Compile Python with PYMEM_DEBUG_SERIALNO defined to get back the
field.</content>
</entry>
<entry>
<title>bpo-36389: Change PyMem_SetupDebugHooks() constants (GH-12782)</title>
<updated>2019-04-11T11:01:15Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-04-11T11:01:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4c409beb4c360a73d054f37807d3daad58d1b567'/>
<id>urn:sha1:4c409beb4c360a73d054f37807d3daad58d1b567</id>
<content type='text'>
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().</content>
</entry>
</feed>
