IronPython memory leak?

Posted by Mike Gates on Stack Overflow See other posts from Stack Overflow or by Mike Gates
Published on 2010-04-20T23:28:50Z Indexed on 2010/04/20 23:33 UTC
Read the original article Hit count: 171

Filed under:
|

Run this:

for i in range(1000000000):
    a = []

It looks like the list objects being created never get marked for garbage collection. From a memory profiler, it looks like the interpreter's stack frame is holding onto all the list objects, so GC can never do anything about it.

Is this by design?

© Stack Overflow or respective owner

Related posts about dlr

Related posts about ironpython