Ticket #1506 (closed deprecation: fixed)
PMC attribute allocation flags design and evolution
|Reported by:||NotFound||Owned by:||coke|
|Severity:||low||Keywords:||pmc auto_attrs manual_attrs|
Some months ago we introduced the PMC flag auto_attrs and his supporting code to automatically allocate and deallocate memory for the PMC attributes. The idea was that the switch to automatic allocation can be error prone and must be done in small steps, keeping the old way as default.
Now that the auto_attrs feature is firmly stablished is time for the next step. r44537 introduces the manual_attrs flag, and emits a warning when none of auto_attrs or manual_attrs is used.
The next step will be to replace that warning with an error, maybe with an earlier stage that just checks the condition during make test. We must decide a release number to put that change in effect and set a deprecation notice.
After that and other deprecation cycle we can declare auto_attrs as the default and relax the checks.
This ticket summarizes comments and decisions dispersed in #parrotsketch and #parrot logs, and will be updated to document further design decisions and related changes in the implementation.