Ticket #1083 (closed patch: wontfix)
Managed cstrings to avoid the need of Parrot_str_free_cstring
|Reported by:||NotFound||Owned by:|
This is another attempt to solve the problems of Parrot_str_free_cstring (need to ensure to call it in all code paths, lose the cstring some called function unexpectedly throws...).
It adds the new function Parrot_str_to_cstring_managed that returns some PMC (a ManagedStruct now, but this is an implementation detail) that contains the cstring, providing access to it via vtable get_pointer and frees it when destroyed.