[issue12352] multiprocessing.Value() hangs

Antoine Pitrou report at bugs.python.org
Sat Jul 2 13:50:18 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

+        if gc.isenabled():
+            thresholds = gc.get_threshold()
+            self.addCleanup(gc.set_threshold, *thresholds)
+        else:
+            gc.enable()
+            self.addCleanup(gc.disable)

It seems you won't restore the thresholds if the GC wasn't enabled at first.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12352>
_______________________________________


More information about the Python-bugs-list mailing list