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
1c7ade52
Kaydet (Commit)
1c7ade52
authored
Ock 18, 2012
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix leaking a RuntimeError objects when creating sub-interpreters
üst
2fabface
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
exceptions.c
Objects/exceptions.c
+23
-21
No files found.
Objects/exceptions.c
Dosyayı görüntüle @
1c7ade52
...
@@ -2093,27 +2093,29 @@ _PyExc_Init(void)
...
@@ -2093,27 +2093,29 @@ _PyExc_Init(void)
preallocate_memerrors
();
preallocate_memerrors
();
PyExc_RecursionErrorInst
=
BaseException_new
(
&
_PyExc_RuntimeError
,
NULL
,
NULL
);
if
(
!
PyExc_RecursionErrorInst
)
{
if
(
!
PyExc_RecursionErrorInst
)
PyExc_RecursionErrorInst
=
BaseException_new
(
&
_PyExc_RuntimeError
,
NULL
,
NULL
);
Py_FatalError
(
"Cannot pre-allocate RuntimeError instance for "
if
(
!
PyExc_RecursionErrorInst
)
"recursion errors"
);
Py_FatalError
(
"Cannot pre-allocate RuntimeError instance for "
else
{
"recursion errors"
);
PyBaseExceptionObject
*
err_inst
=
else
{
(
PyBaseExceptionObject
*
)
PyExc_RecursionErrorInst
;
PyBaseExceptionObject
*
err_inst
=
PyObject
*
args_tuple
;
(
PyBaseExceptionObject
*
)
PyExc_RecursionErrorInst
;
PyObject
*
exc_message
;
PyObject
*
args_tuple
;
exc_message
=
PyUnicode_FromString
(
"maximum recursion depth exceeded"
);
PyObject
*
exc_message
;
if
(
!
exc_message
)
exc_message
=
PyUnicode_FromString
(
"maximum recursion depth exceeded"
);
Py_FatalError
(
"cannot allocate argument for RuntimeError "
if
(
!
exc_message
)
"pre-allocation"
);
Py_FatalError
(
"cannot allocate argument for RuntimeError "
args_tuple
=
PyTuple_Pack
(
1
,
exc_message
);
"pre-allocation"
);
if
(
!
args_tuple
)
args_tuple
=
PyTuple_Pack
(
1
,
exc_message
);
Py_FatalError
(
"cannot allocate tuple for RuntimeError "
if
(
!
args_tuple
)
"pre-allocation"
);
Py_FatalError
(
"cannot allocate tuple for RuntimeError "
Py_DECREF
(
exc_message
);
"pre-allocation"
);
if
(
BaseException_init
(
err_inst
,
args_tuple
,
NULL
))
Py_DECREF
(
exc_message
);
Py_FatalError
(
"init of pre-allocated RuntimeError failed"
);
if
(
BaseException_init
(
err_inst
,
args_tuple
,
NULL
))
Py_DECREF
(
args_tuple
);
Py_FatalError
(
"init of pre-allocated RuntimeError failed"
);
Py_DECREF
(
args_tuple
);
}
}
}
Py_DECREF
(
bltinmod
);
Py_DECREF
(
bltinmod
);
...
...
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