[llvm-commits] [PATCH] Allow Module deletion after function compiled.
jyasskin at gmail.com
jyasskin at gmail.com
Thu Oct 15 14:15:50 PDT 2009
Reviewers: ,
Message:
Patch at http://codereview.appspot.com/download/issue133043_1.diff
Description:
Fix http://llvm.org/PR4822: allow module deletion after function
compiled.
When functions are compiled, they accumulate references in the
JITResolver's stub maps. This patch removes those references when the
functions are destroyed. It's illegal to destroy a Function when any
thread may still try to call its machine code.
TODO: Write a ValueMap<> class instead of all these CallbackVH
subclasses and explicit constructor calls.
This depends on http://codereview.appspot.com/130080
Please review this at http://codereview.appspot.com/133043
Affected files:
M lib/ExecutionEngine/JIT/JITEmitter.cpp
M unittests/ExecutionEngine/JIT/JITTest.cpp
M unittests/ExecutionEngine/JIT/Makefile
More information about the llvm-commits
mailing list