Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
In themaybe_freelist_push function, PyTupleObjects with an ob_size of 20 are being stored in the free_list for potential reuse. However, in themaybe_freelist_pop function, these objects aren't actually being reused.
// Objects/tupleobject.cstaticinlineintmaybe_freelist_push(PyTupleObject*op) {// ....}staticinlinePyTupleObject*maybe_freelist_pop(Py_ssize_tsize) {// ...}
I've already submitted a PR.
Here is the link to the PR:#121428
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- GH-121439: Allow PyTupleObjects with an ob_size of 20 in the free_list to be reused #121428
- [3.13] GH-121439: Allow PyTupleObjects with an ob_size of 20 in the free_list to be reused (gh-121428) #121565
- [3.12] GH-121439: Allow PyTupleObjects with an ob_size of 20 in the free_list to be reused (gh-121428) #121566