Skip to content

Commit

Permalink
Bug 1140225 - Close multiprocessing pool after use. r=mccr8
Browse files Browse the repository at this point in the history
Even though the pool goes out of scope, all of it's processes remain
open. Then the next time through we open even more processes which will
eventually lead to an OOM crash.
  • Loading branch information
EricRahm committed Mar 6, 2015
1 parent 73a8a50 commit d1ce2c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/get_gc_cc_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def compress_logs(log_filenames, out_dir):
# Start compressing.
pool = Pool()
pool.map(gzip_compress, to_compress)
pool.close()


def get_logs(args, out_dir=None, get_procrank_etc=True):
Expand Down

0 comments on commit d1ce2c1

Please sign in to comment.