Message148937
Calling Pool.map (and friends) on empty lists [] causes Pool._cache to hang on to the MapResults forever:
tp = ThreadPool(5)
xs = tp.map(lambda x: 'a' * int(10e6), range(100))
# now using 1GB mem = 100 * 10MB strs
del xs
gc.collect()
# still using 1GB mem
tp.close(); tp.join()
# now using ~0GB mem |
|
| Date |
User |
Action |
Args |
| 2011-12-06 20:28:30 | yang | set | recipients:
+ yang |
| 2011-12-06 20:28:30 | yang | set | messageid: <1323203310.38.0.606183787821.issue13542@psf.upfronthosting.co.za> |
| 2011-12-06 20:28:29 | yang | link | issue13542 messages |
| 2011-12-06 20:28:29 | yang | create | |
|