Neil Schemenauer
350c58ba4e
GH-135552: Make the GC clear weakrefs later (GH-136189)
...
Fix a bug caused by the garbage collector clearing weakrefs too early. The
weakrefs in the ``tp_subclasses`` dictionary are needed in order to correctly
invalidate type caches (for example, by calling ``PyType_Modified()``).
Clearing weakrefs before calling finalizers causes the caches to not be
correctly invalidated. That can cause crashes since the caches can refer to
invalid objects. Defer the clearing of weakrefs without callbacks until after
finalizers are executed.
2025-08-07 16:32:17 -07:00
Weilin Du
698bab5a40
Doc: fix duplicated words ( #136086 )
...
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-06-29 18:04:02 -04:00
Yongzi Li
814ca116d5
Docs: fix typo in InternalDocs/garbage_collector.md (gh-133151)
...
Fix typo in `InternalDocs/garbage_collector.md`.
2025-04-29 17:20:50 +00:00
Neil Schemenauer
31a500a92b
Add internal docs about the free-threaded GC. (gh-132562)
2025-04-28 13:32:39 -07:00
Nybblista
210f027d02
Fix typo in the garbage_collector.md file ( #132803 )
2025-04-24 16:46:39 +03:00
Petr Viktorin
690fe077f6
gh-126491: Revert "GH-126491: Lower heap size limit with faster marking (GH-127519)" (GH-127770)
...
Revert "GH-126491: Lower heap size limit with faster marking (GH-127519)"
This reverts commit 023b7d2141 , which introduced
a refleak.
2024-12-10 11:53:56 +01:00
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
72dca6c4ed
gh-119786: fix typo in InternalDocs/garbage_collector.md ( #127687 )
2024-12-07 15:42:45 +05:30
Mark Shannon
023b7d2141
GH-126491: Lower heap size limit with faster marking (GH-127519)
...
* Faster marking of reachable objects
* Changes calculation of work to do and work done.
* Merges transitive closure calculations
2024-12-06 10:46:59 +00:00
Mark Shannon
a8dd821d5b
GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-127110)
...
* Mark almost all reachable objects before doing collection phase
* Add stats for objects marked
* Visit new frames before each increment
* Update docs
* Clearer calculation of work to do.
2024-12-02 10:12:17 +00:00
Bénédikt Tran
04673d2f14
gh-119786: cleanup internal docs and fix internal links ( #127485 )
2024-12-01 17:12:22 +00:00
Topher Fischer
14a05a8f43
gh-126882: Fix indentation in code sample block ( #126887 )
2024-11-27 15:24:45 +00:00
Mark Shannon
aea0c586d1
GH-127010: Don't lazily track and untrack dicts (GH-127027)
2024-11-20 16:41:20 +00:00
Hugo van Kemenade
899fdb213d
Revert "GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-126502)" ( #126983 )
2024-11-19 11:25:09 +02:00
Mark Shannon
b0fcc2c47a
GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-126502)
...
* Mark almost all reachable objects before doing collection phase
* Add stats for objects marked
* Visit new frames before each increment
* Remove lazy dict tracking
* Update docs
* Clearer calculation of work to do.
2024-11-18 14:31:26 +00:00
Mark Shannon
3966d8d626
GH-117759: Update GC docs for incremental collection (GH-126695)
2024-11-14 09:50:00 +00:00
Marat Sharafutdinov
c35b33bfb7
Fix typo in garbage_collector.md ( #125556 )
2024-10-23 19:04:49 -07:00
Irit Katriel
d0bfff47fb
gh-119786: [doc] more consistent syntax in InternalDocs ( #125815 )
2024-10-21 23:37:31 +01:00
Irit Katriel
89515be596
gh-119786: Move garbage collection doc from devguide to InternalDocs ( #125282 )
...
Co-Authored-By: Carol Willing carolcode@willingconsulting.com
Co-Authored-By: Ezio Melotti ezio.melotti@gmail.com
Co-Authored-By: Hugo van Kemenade hugovk@users.noreply.github.com
Co-Authored-By: Itamar Ostricher itamarost@gmail.com
Co-Authored-By: Jesús Cea jcea@jcea.es
Co-Authored-By: Joannah Nanjekye 33177550+nanjekyejoannah@users.noreply.github.com
Co-Authored-By: Ned Batchelder ned@nedbatchelder.com
Co-Authored-By: Pablo Galindo Salgado Pablogsal@gmail.com
Co-Authored-By: Pamela Fox pamela.fox@gmail.com
Co-Authored-By: Sam Gross colesbury@gmail.com
Co-Authored-By: Stefan Pochmann 609905+pochmann@users.noreply.github.com
Co-Authored-By: T. Wouters thomas@python.org
Co-Authored-By: q-ata 24601033+q-ata@users.noreply.github.com
Co-Authored-By: slateny 46876382+slateny@users.noreply.github.com
Co-Authored-By: Борис Верховский boris.verk@gmail.com
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Jacob Coffee <jacob@z7x.org>
2024-10-11 21:18:37 +01:00