[llvm] r326127 - [opt-viewer] Kill parser processes before moving onto rendering
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 13:15:52 PST 2018
Author: anemet
Date: Mon Feb 26 13:15:51 2018
New Revision: 326127
URL: http://llvm.org/viewvc/llvm-project?rev=326127&view=rev
Log:
[opt-viewer] Kill parser processes before moving onto rendering
The main benefit is that they release the memory they were holding onto.
Modified:
llvm/trunk/tools/opt-viewer/optpmap.py
Modified: llvm/trunk/tools/opt-viewer/optpmap.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt-viewer/optpmap.py?rev=326127&r1=326126&r2=326127&view=diff
==============================================================================
--- llvm/trunk/tools/opt-viewer/optpmap.py (original)
+++ llvm/trunk/tools/opt-viewer/optpmap.py Mon Feb 26 13:15:51 2018
@@ -48,6 +48,8 @@ def pmap(func, iterable, processes, shou
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')
More information about the llvm-commits
mailing list