[issue19787] tracemalloc: set_reentrant() should not have to call PyThread_delete_key()

STINNER Victor report at bugs.python.org
Tue Nov 26 01:13:57 CET 2013


New submission from STINNER Victor:

The tracemalloc module uses PyThread_set_key_value() to store an flag in the Thread Local Storage. The problem is that it is not possible to call the function twice with two different values. If PyThread_set_key_value() is called with a non-NULL pointer, the next calls do nothing.

Python should expose a new function which would always call TlsSetValue() / pthread_setspecific() with the input value with no extra check on the input value.

----------
messages: 204442
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: tracemalloc: set_reentrant() should not have to call PyThread_delete_key()
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19787>
_______________________________________


More information about the Python-bugs-list mailing list