Displaying 1 result from an estimated 1 matches for "finalizedmodul".
Did you mean:
finalizedmodules
2016 Oct 28
4
MCJit and remove module memory leak?
...ing 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 the ptr?
Am I missing something here?
-------------- next part -------------...