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
7314b381
Kaydet (Commit)
7314b381
authored
Ock 21, 2009
tarafından
Jesse Noller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 5009: multiprocessing: failure in manager._debug_info()
üst
e741cc60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
managers.py
Lib/multiprocessing/managers.py
+3
-3
test_multiprocessing.py
Lib/test/test_multiprocessing.py
+2
-0
No files found.
Lib/multiprocessing/managers.py
Dosyayı görüntüle @
7314b381
...
...
@@ -136,7 +136,7 @@ class Server(object):
self
.
listener
=
Listener
(
address
=
address
,
backlog
=
5
)
self
.
address
=
self
.
listener
.
address
self
.
id_to_obj
=
{
0
:
(
None
,
())}
self
.
id_to_obj
=
{
'0'
:
(
None
,
())}
self
.
id_to_refcount
=
{}
self
.
mutex
=
threading
.
RLock
()
self
.
stop
=
0
...
...
@@ -298,7 +298,7 @@ class Server(object):
keys
=
self
.
id_to_obj
.
keys
()
keys
.
sort
()
for
ident
in
keys
:
if
ident
!=
0
:
if
ident
!=
'0'
:
result
.
append
(
'
%
s: refcount=
%
s
\n
%
s'
%
(
ident
,
self
.
id_to_refcount
[
ident
],
str
(
self
.
id_to_obj
[
ident
][
0
])[:
75
]))
...
...
@@ -310,7 +310,7 @@ class Server(object):
'''
Number of shared objects
'''
return
len
(
self
.
id_to_obj
)
-
1
# don't count ident=
0
return
len
(
self
.
id_to_obj
)
-
1
# don't count ident=
'0'
def
shutdown
(
self
,
c
):
'''
...
...
Lib/test/test_multiprocessing.py
Dosyayı görüntüle @
7314b381
...
...
@@ -1057,8 +1057,10 @@ class _TestZZZNumberOfObjects(BaseTestCase):
multiprocessing
.
active_children
()
# discard dead process objs
gc
.
collect
()
# do garbage collection
refs
=
self
.
manager
.
_number_of_objects
()
debug_info
=
self
.
manager
.
_debug_info
()
if
refs
!=
EXPECTED_NUMBER
:
print
self
.
manager
.
_debug_info
()
print
debug_info
self
.
assertEqual
(
refs
,
EXPECTED_NUMBER
)
...
...
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