[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: Let's continue discussion on serialno atomicity on bpo-31473. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: According to bpo-31473, the debug hook on PyMem_Malloc() is not thread-safe: 'serialno' variable is not protected by any lock and it's not atomic. -- ___ Python tracker ___

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10102 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset c275be54411d425c90e7c679ddb5321ba458f61d by Victor Stinner in branch '2.7': bpo-35368: Make PyMem_Malloc() thread-safe in debug mode (GH-10828) https://github.com/python/cpython/commit/c275be54411d425c90e7c679ddb5321ba458f61d -- _

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-11-30 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10076 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-11-30 Thread STINNER Victor
New submission from STINNER Victor : While fixing bpo-33015, I discovered that PyMem_Malloc() isn't thread-safe when Python is compiled in debug mode: https://bugs.python.org/issue33015#msg330806 I wrote PR 10828 to make PyMem_Malloc() thread-safe when Python is compiled in debug mode. -