search for: uses_empty

Displaying 1 result from an estimated 1 matches for "uses_empty".

Did you mean: use_empty
2011 Jul 25
0
[LLVMdev] Memory leaks in the JIT and how will MC-objects be deallocated in the MCJIT?
...that needs to run in a long-lived process. During development, we noticed substantial memory-growth with increased lifetime of the JIT. In trying to eliminate that continuous memory growth, we did a few things, including making LLVMContext collect and free unused constants (detected by Value::uses_empty()). This dropped the memory growth by half. Now we notice that the JIT allocates temporary symbols used by codegeneration in the MCContext's BumpPtrAllocator and never frees it. So after a certain amount of iterations in the shell's REPL loop, we will run out of memory for sure. Hence...