Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
bdddb11b
Kaydet (Commit)
bdddb11b
authored
Eyl 05, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
clear out f_gen during generator finalization (closes #27812)
Patch from Armin Rigo.
üst
80109d33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
NEWS
Misc/NEWS
+3
-0
genobject.c
Objects/genobject.c
+4
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
bdddb11b
...
@@ -10,6 +10,9 @@ Release date: TBA
...
@@ -10,6 +10,9 @@ Release date: TBA
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #27812: Properly clear out a generator'
s
frame
's backreference to the
generator to prevent crashes in frame.clear().
- Issue #27811: Fix a crash when a coroutine that has not been awaited is
- Issue #27811: Fix a crash when a coroutine that has not been awaited is
finalized with warnings-as-errors enabled.
finalized with warnings-as-errors enabled.
...
...
Objects/genobject.c
Dosyayı görüntüle @
bdddb11b
...
@@ -71,7 +71,10 @@ gen_dealloc(PyGenObject *gen)
...
@@ -71,7 +71,10 @@ gen_dealloc(PyGenObject *gen)
return
;
/* resurrected. :( */
return
;
/* resurrected. :( */
_PyObject_GC_UNTRACK
(
self
);
_PyObject_GC_UNTRACK
(
self
);
Py_CLEAR
(
gen
->
gi_frame
);
if
(
gen
->
gi_frame
!=
NULL
)
{
gen
->
gi_frame
->
f_gen
=
NULL
;
Py_CLEAR
(
gen
->
gi_frame
);
}
Py_CLEAR
(
gen
->
gi_code
);
Py_CLEAR
(
gen
->
gi_code
);
Py_CLEAR
(
gen
->
gi_name
);
Py_CLEAR
(
gen
->
gi_name
);
Py_CLEAR
(
gen
->
gi_qualname
);
Py_CLEAR
(
gen
->
gi_qualname
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment