tpool: clear up some references that prevent garbage collection
https://github.com/eventlet/eventlet/pull/33
This commit is contained in:
@@ -54,7 +54,7 @@ def tpool_trampoline():
|
|||||||
try:
|
try:
|
||||||
(e,rv) = _rspq.get(block=False)
|
(e,rv) = _rspq.get(block=False)
|
||||||
e.send(rv)
|
e.send(rv)
|
||||||
rv = None
|
e = rv = None
|
||||||
except Empty:
|
except Empty:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ def tworker():
|
|||||||
# test_leakage_from_tracebacks verifies that the use of
|
# test_leakage_from_tracebacks verifies that the use of
|
||||||
# exc_info does not lead to memory leaks
|
# exc_info does not lead to memory leaks
|
||||||
_rspq.put((e,rv))
|
_rspq.put((e,rv))
|
||||||
meth = args = kwargs = e = rv = None
|
msg = meth = args = kwargs = e = rv = None
|
||||||
_signal_t2e()
|
_signal_t2e()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user