Displaying 3 results from an estimated 3 matches for "naosuk".
Did you mean:
naosuke
2012 Jan 05
0
[LLVMdev] How to free memory of JIT'd function
Hi,
I put the sample code and a brief analysis using Valgrind to GitHub
in order to make my problem clear.
https://github.com/naosuke/how-to-free-memory-of-JIT-function
The Valgrind heap profiler indicates memory leaking but I don't get
what is wrong with the way to free memory.
If someone could please offer some advice/suggestion on this, I would
really appreciate it.
Best,
Naosuke
On Thu, Dec 29, 2011 at 6:58 PM, OKUDA...
2012 Jan 10
1
[LLVMdev] How to free memory of JIT'd function
...e
[1] I'd suggest you to try your sample against http://cgit.freedesktop.org/~jrfonseca/llvm/log/?h=backports_26
----- Original Message -----
> Hi,
>
> I put the sample code and a brief analysis using Valgrind to GitHub
> in order to make my problem clear.
> https://github.com/naosuke/how-to-free-memory-of-JIT-function
> The Valgrind heap profiler indicates memory leaking but I don't get
> what is wrong with the way to free memory.
>
> If someone could please offer some advice/suggestion on this, I would
> really appreciate it.
>
> Best,
> Naosuke...
2011 Dec 29
2
[LLVMdev] How to free memory of JIT'd function
...Context);
Function *func = M->getFunction("factorial");
uintptr_t tmp = (uintptr_t)(EE->getPointerToFunction(func));
EE->freeMachineCodeForFunction(func);
func->eraseFromParent();
}
delete EE;
llvm_shutdown();
}
Thank you for any help.
Naosuke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111229/67decb88/attachment.html>