Ticket #709 (new todo)

Opened 6 years ago

Last modified 4 years ago

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

  Changed 6 years ago by whiteknight

  • milestone 1.3 deleted

follow-up: ↓ 3   Changed 6 years ago by cotto

  • owner set to cotto

I'll take this ticket since I'll be working on pmc2c in the very near future. I also don't see why pmc2c (and pmcc When It's Ready(tm)) can't add code to init to set the proper PObj flags.

in reply to: ↑ 2   Changed 4 years ago by jkeenan

Replying to cotto:

I'll take this ticket since I'll be working on pmc2c in the very near future.

cotto: Can we get an update on this ticket?

Thanks.

kid51

Note: See TracTickets for help on using tickets.