#895: Towards automatic allocation and deallocation of PMC attributes
----------------------+-----------------------------------------------------
Reporter: NotFound | Owner: NotFound
Type: feature | Status: assigned
Priority: normal | Milestone:
Component: none | Version: 1.4.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
Comment(by NotFound):
Some results of the auto_attrs branch:
* The attr_size field is located at the end of the vtable struct, to avoid
possible problems with someone depending on his binary format.
* The value is set in the vtable update functions. A heuristic is used to
solve problems with PMC inheriting from the ones that had been converted
to auto_attrs: if the PMC has not the auto_attrs flag, the size value is
set to zero only if it defines the init or the init_pmc vtable functions,
otherwise it let unchanged the value from his parent.
* With a bunch of PMC converted parrot pass all tests and I've been able
to build and test rakudo and partcl.
I think the results are positive and the feature can be introduced in
trunk with none or minimal impact on languages.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/895#comment:6>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets