Ticket #709 (new todo)
Pmc2c should generate mark and destroy VTABLES
Reported by: | whiteknight | Owned by: | cotto |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | 1.2.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
Pending discussion today in #ps:
<Whiteknight> Propose adding a PObj flag "PObj_uses_malloc_attrs_FLAG" to automatically deallocate Parrot_*_attribute structures in the GC. Thoughts? <chromatic> Alternative: smarten Pmc2C such that it automatically generates mark() and destroy() VTABLEs as necessary. <allison> prefer chromatic's solution
Pmc2c.pl should be smart enough to:
- automatically generate a mark() vtable to mark all STRING and PMC attrs, unless the user has specifically provided one, and
- automatically generate a destroy() vtable to deallocate the Parrot_*_attributes structure, unless the user has already provided one.
There are lots of good reasons to do this.
Change History
Note: See
TracTickets for help on using
tickets.