mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
SF bug 839548: Bug in type's GC handling causes segfaults.
Also SF patch 843455. This is a critical bugfix. I'll backport to 2.3 maint, but not beyond that. The bugs this fixes have been there since weakrefs were introduced.
This commit is contained in:
parent
901dc98316
commit
403a203223
6 changed files with 491 additions and 20 deletions
|
@ -39,6 +39,8 @@ PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref);
|
|||
|
||||
PyAPI_FUNC(long) _PyWeakref_GetWeakrefCount(PyWeakReference *head);
|
||||
|
||||
PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self);
|
||||
|
||||
#define PyWeakref_GET_OBJECT(ref) (((PyWeakReference *)(ref))->wr_object)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue