Displaying 1 result from an estimated 1 matches for "addedmodul".
Did you mean:
addedmodules
2016 Oct 28
4
MCJit and remove module memory leak?
...Its API is very simple:: addModule adds an LLVM IR module to the JIT,
making its functions available for execution; removeModule removes a
module, freeing any memory associated with the code in that module;"
But when I look into the implementation of remove module, it only erases
the ptr from AddedModules
//return AddedModules.erase(M) || LoadedModules.erase(M) ||
FinalizedModules.erase(M);
When you add a module, the unique ptr is stripped, and the raw ptr is
stored.
//AddedModules.insert(M.release());
This should imply that the person who is invoking removeModule also should
invoke a delete on...