gh-115103: Implement delayed memory reclamation (QSBR) (#115180)

This adds a safe memory reclamation scheme based on FreeBSD's "GUS" and
quiescent state based reclamation (QSBR). The API provides a mechanism
for callers to detect when it is safe to free memory that may be
concurrently accessed by readers.
This commit is contained in:
Sam Gross 2024-02-16 15:25:19 -05:00 committed by GitHub
parent 711f42de2e
commit 5903190727
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 577 additions and 2 deletions

View file

@ -645,6 +645,7 @@ PyOS_AfterFork_Child(void)
#ifdef Py_GIL_DISABLED
_Py_brc_after_fork(tstate->interp);
_Py_qsbr_after_fork((_PyThreadStateImpl *)tstate);
#endif
status = _PyEval_ReInitThreads(tstate);