mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Add news about GC API change. Explain how to upgrade extension modules.
This commit is contained in:
parent
55cdc88c09
commit
4042c69b5e
1 changed files with 16 additions and 3 deletions
19
Misc/NEWS
19
Misc/NEWS
|
@ -22,9 +22,22 @@ Build
|
||||||
|
|
||||||
API
|
API
|
||||||
|
|
||||||
+ XXX Say something about Neil's GC rework, and that extensions that
|
+ The GC API has been changed. Extensions that use the old API will still
|
||||||
don't upgrade to the new scheme will still compile but not actually
|
compile but will not participate in GC. To upgrade an extension
|
||||||
participate in GC.
|
module:
|
||||||
|
|
||||||
|
- rename Py_TPFLAGS_GC to PyTPFLAGS_HAVE_GC
|
||||||
|
|
||||||
|
- use PyObject_GC_New or PyObject_GC_NewVar to allocate objects and
|
||||||
|
PyObject_GC_Del to deallocate them
|
||||||
|
|
||||||
|
- rename PyObject_GC_Init to PyObject_GC_Track and PyObject_GC_Fini
|
||||||
|
to PyObject_GC_UnTrack
|
||||||
|
|
||||||
|
- remove PyGC_HEAD_SIZE from object size calculations
|
||||||
|
|
||||||
|
- remove calls to PyObject_AS_GC and PyObject_FROM_GC
|
||||||
|
|
||||||
|
|
||||||
New platforms
|
New platforms
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue