summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2019-06-12 22:41:03 -0500
committerGitHub <noreply@github.com>2019-06-12 22:41:03 -0500
commitd1c85a27ea9fe70163cad3443d5e534d94f08284 (patch)
tree394e4c7c33491d4fc88b8cc5ce2898618430858a /Python/Python-ast.c
parent3a2883c313be3aff34c61a42e586f8507ba5945f (diff)
downloadcpython-git-d1c85a27ea9fe70163cad3443d5e534d94f08284.tar.gz
bpo-37257: obmalloc: stop simple arena thrashing (#14039)
GH-14039: allow (no more than) one wholly empty arena on the usable_arenas list. This prevents thrashing in some easily-provoked simple cases that could end up creating and destroying an arena on each loop iteration in client code. Intuitively, if the only arena on the list becomes empty, it makes scant sense to give it back to the system unless we know we'll never need another free pool again before another arena frees a pool. If the latter obtains, then - yes - this will "waste" an arena.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions