This is shorter version of memory leak example:
function leak()
for i=1:100000
t = Task(eval(:(function() produce() end)))
consume(t)

try
 t.exception = null
 yieldto(t)
end
end
gc()
end


Reply via email to