#663: src/pmc.c:pmc_free() is unused
-------------------------+--------------------------------------------------
Reporter: whiteknight | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 1.3
Component: none | Version: 1.1.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
-------------------------+--------------------------------------------------
The function pmc_free() in src/pmc.c is currently unused. Besides that, I
don't think it does the right thing anyway: it doesnt call the destroy
VTABLE for types that need it before returning the header to the GC.
In general, I don't think we should have any cases where PMCs are
explicitly freed, the GC should be handling that so we don't end up with
cases where things are pointing to a PMC that has been recycled. I suggest
we delete this function outright. Since it isn't used from anywhere and
since it doesn't work anyway (so nobody should be relying on it) I don't
know if we need a deprecation cycle for it.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/663>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets