#732: Coroutine contexts not getting freed
--------------------+-------------------------------------------------------
 Reporter:  coke    |       Owner:       
     Type:  bug     |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  none    |     Version:  1.2.0
 Severity:  medium  |    Keywords:       
     Lang:          |       Patch:       
 Platform:          |  
--------------------+-------------------------------------------------------
 running valgrind against tcl to identify memory leaks, I found that the
 context in Coroutine's invoke is not getting freed. This leaks 24K in a
 trivial {puts hi} for partcl.

 It looks like for Subs, the contexts are getting properly freed. Coroutine
 extends from Sub, and should be calling Parrot_Sub_destroy. However, that
 uses the line:

 {{{
     GETATTR_Sub_sub(interp, pmc, sub);
 }}}

 To determine which Parrot_sub to clean up: I'm guessing doesn't work when
 you're not a Sub but a Coroutine.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/732>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to