]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix _tracemalloc start/stop
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Mar 2016 23:10:24 +0000 (00:10 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Mar 2016 23:10:24 +0000 (00:10 +0100)
commit2f49e091100e7b834767a1a295c63938c6864e55
tree371d395c8411647a7cb1a135dc314cb076f508a4
parentd6990d221b0528fb874561201e9a374bc0b8ac0f
Fix _tracemalloc start/stop

Issue #26588: Fix _tracemalloc start/stop: don't play with the reentrant flag.

set_reentrant(1) fails with an assertion error if tracemalloc_init() is called
first in a thread A and tracemalloc_start() is called second in a thread B. The
tracemalloc is imported in a thread A. Importing the module calls
tracemalloc_init(). tracemalloc.start() is called in a thread B.
Modules/_tracemalloc.c