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
8db076cf
Kaydet (Commit)
8db076cf
authored
Eki 30, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #10363: Deallocate global locks in Py_Finalize().
üst
e0aa8037
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
10 deletions
+23
-10
NEWS
Misc/NEWS
+2
-0
import.c
Python/import.c
+15
-10
pystate.c
Python/pystate.c
+6
-0
No files found.
Misc/NEWS
Dosyayı görüntüle @
8db076cf
...
...
@@ -10,6 +10,8 @@ What's New in Python 3.2.3?
Core and Builtins
-----------------
- Issue #10363: Deallocate global locks in Py_Finalize().
- Issue #13018: Fix reference leaks in error paths in dictobject.c.
Patch by Suman Saha.
...
...
Python/import.c
Dosyayı görüntüle @
8db076cf
...
...
@@ -252,16 +252,6 @@ _PyImportHooks_Init(void)
Py_DECREF
(
path_hooks
);
}
void
_PyImport_Fini
(
void
)
{
Py_XDECREF
(
extensions
);
extensions
=
NULL
;
PyMem_DEL
(
_PyImport_Filetab
);
_PyImport_Filetab
=
NULL
;
}
/* Locking primitives to prevent parallel imports of the same module
in different threads to return with a partially loaded module.
These calls are serialized by the global interpreter lock. */
...
...
@@ -374,6 +364,21 @@ imp_release_lock(PyObject *self, PyObject *noargs)
return
Py_None
;
}
void
_PyImport_Fini
(
void
)
{
Py_XDECREF
(
extensions
);
extensions
=
NULL
;
PyMem_DEL
(
_PyImport_Filetab
);
_PyImport_Filetab
=
NULL
;
#ifdef WITH_THREAD
if
(
import_lock
!=
NULL
)
{
PyThread_free_lock
(
import_lock
);
import_lock
=
NULL
;
}
#endif
}
static
void
imp_modules_reloading_clear
(
void
)
{
...
...
Python/pystate.c
Dosyayı görüntüle @
8db076cf
...
...
@@ -150,6 +150,12 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
*
p
=
interp
->
next
;
HEAD_UNLOCK
();
free
(
interp
);
#ifdef WITH_THREAD
if
(
interp_head
==
NULL
&&
head_mutex
!=
NULL
)
{
PyThread_free_lock
(
head_mutex
);
head_mutex
=
NULL
;
}
#endif
}
...
...
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