summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-02-07 12:38:34 (GMT)
committerGitHub <noreply@github.com>2024-02-07 12:38:34 (GMT)
commit8a3c499ffe7e15297dd4c0b446a0b97b4d32108a (patch)
tree33db486003306c8b0bee15012680642391963977 /Objects/object.c
parentd0322fdf2c1a7292a43959fe5a572d783b88a1c4 (diff)
downloadcpython-8a3c499ffe7e15297dd4c0b446a0b97b4d32108a.zip
cpython-8a3c499ffe7e15297dd4c0b446a0b97b4d32108a.tar.gz
cpython-8a3c499ffe7e15297dd4c0b446a0b97b4d32108a.tar.bz2
GH-108362: Revert "GH-108362: Incremental GC implementation (GH-108038)" (#115132)
Revert "GH-108362: Incremental GC implementation (GH-108038)" This reverts commit 36518e69d74607e5f094ce55286188e4545a947d.
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 7247eb2..bbf7f98 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -2388,21 +2388,6 @@ _Py_NewReferenceNoTotal(PyObject *op)
}
void
-_Py_SetImmortal(PyObject *op)
-{
- if (PyObject_IS_GC(op) && _PyObject_GC_IS_TRACKED(op)) {
- _PyObject_GC_UNTRACK(op);
- }
-#ifdef Py_GIL_DISABLED
- op->ob_tid = _Py_UNOWNED_TID;
- op->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL;
- op->ob_ref_shared = 0;
-#else
- op->ob_refcnt = _Py_IMMORTAL_REFCNT;
-#endif
-}
-
-void
_Py_ResurrectReference(PyObject *op)
{
if (_PyRuntime.tracemalloc.config.tracing) {