#783: Lack of garbage-collectible packfiles can lead to memory leaks
--------------------+-------------------------------------------------------
Reporter: coke | Owner: whiteknight
Type: bug | Status: assigned
Priority: major | Milestone:
Component: core | Version: master
Severity: medium | Keywords:
Lang: | Patch:
Platform: all |
--------------------+-------------------------------------------------------
Comment(by jkeenan):
When I simply comment out `Parrot_pmc_gc_register` from
`Parrot_pf_get_packfile_pmc`, I get the error output in the file I just
attached.
{{{
diff --git a/src/packfile/api.c b/src/packfile/api.c
index e8a4906..9bd444b 100644
--- a/src/packfile/api.c
+++ b/src/packfile/api.c
@@ -1239,7 +1239,7 @@ Parrot_pf_get_packfile_pmc(PARROT_INTERP,
ARGIN(PackFile *
/* TODO: We shouldn't need to register this here. But, this is a
cheap
fix to make sure packfiles aren't getting collected
prematurely */
- Parrot_pmc_gc_register(interp, ptr);
+ /* Parrot_pmc_gc_register(interp, ptr); */
return ptr;
}
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/783#comment:15>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets