mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
711f42de2e
commit
5903190727
18 changed files with 577 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue