1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[opt-viewer] Kill parser processes before moving onto rendering

The main benefit is that they release the memory they were holding onto.

llvm-svn: 326127
This commit is contained in:
Adam Nemet 2018-02-26 21:15:51 +00:00
parent b38d91df8a
commit 2ac531973e

View File

@ -48,6 +48,8 @@ def pmap(func, iterable, processes, should_print_progress, *args, **kwargs):
initargs=(_current, _total,),
processes=processes)
result = pool.map(_wrapped_func, func_and_args, *args, **kwargs)
pool.close()
pool.join()
if should_print_progress:
sys.stdout.write('\r')