gh-115103: Implement delayed free mechanism for free-threaded builds (#115367)
This adds `_PyMem_FreeDelayed()` and supporting functions. The `_PyMem_FreeDelayed()` function frees memory with the same allocator as `PyMem_Free()`, but after some delay to ensure that concurrent lock-free readers have finished.
S
Sam Gross committed
e3ad6ca56f9b49db0694f432a870f907a8039f79
Parent: d207c7c
Committed by GitHub <noreply@github.com>
on 2/20/2024, 6:04:37 PM