-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
compiler:codegenGeneration of LLVM IR and native codeGeneration of LLVM IR and native code
Description
Hello guys!
I found a generated code related memory leak issue. I wrote a post about it on julia-lang users group, but it looks like everyone have no time for that. I emailed to @JeffBezanson about this issue and he knows about it. I have no possibility to fix this by myself, because i have no such experience in C. So, i decided to create this issue to track it somehow.
So, here is a problem:
function leak()
for i=1:100000
t = Task(eval(:(function() produce() end)))
consume(t)
try
Base.throwto(t, null)
end
end
gc()
endEvery call of leak() eats ~30mb of memory on my PC. This problem exists on both Linux and Windows platforms.
julia> versioninfo()
Julia Version 0.4.2
Commit bb73f34 (2015-12-06 21:47 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz
WORD_SIZE: 64
BLAS: libopenblas (NO_LAPACK NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: liblapack.so.3
LIBM: libopenlibm
LLVM: libLLVM-3.3
oconnore, kbarros, skanskan and xgdgsc
Metadata
Metadata
Assignees
Labels
compiler:codegenGeneration of LLVM IR and native codeGeneration of LLVM IR and native code