mirror of
https://github.com/python/cpython
synced 2026-09-26 16:21:04 +03: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
|
|
@ -458,6 +458,7 @@ PYTHON_OBJS= \
|
|||
Python/pystate.o \
|
||||
Python/pythonrun.o \
|
||||
Python/pytime.o \
|
||||
Python/qsbr.o \
|
||||
Python/bootstrap_hash.o \
|
||||
Python/specialize.o \
|
||||
Python/structmember.o \
|
||||
|
|
@ -1162,6 +1163,7 @@ PYTHON_HEADERS= \
|
|||
$(srcdir)/Include/internal/pycore_pystats.h \
|
||||
$(srcdir)/Include/internal/pycore_pythonrun.h \
|
||||
$(srcdir)/Include/internal/pycore_pythread.h \
|
||||
$(srcdir)/Include/internal/pycore_qsbr.h \
|
||||
$(srcdir)/Include/internal/pycore_range.h \
|
||||
$(srcdir)/Include/internal/pycore_runtime.h \
|
||||
$(srcdir)/Include/internal/pycore_runtime_init.h \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue