gc_massacre branch is ready for merging.
Vasily Chekalkin
bacek at bacek.com
Thu Sep 23 00:36:10 UTC 2010
Hello.
On Thu, Sep 23, 2010 at 10:31 AM, Andrew Whitworth
<wknight8111 at gmail.com> wrote:
> Changing our mechanism for timely destruction would be good. I've
> always thought it felt a little flimsy. I'm not sure what we want to
> replace it with. Maybe a "destroy_and_null" opcode, which would
> destroy the PMC and null the contents of the register to prevent
> accidental reuse. Or, we can attach PMCs needing timely destruction to
> a context or Sub, and when the Context/Sub exits, we destroy all the
> attached "eager" PMCs.
In CPS VM there is no difference between "call" and "return". However
we have explicit C<returncc> so we can attach "list of pmcs to
destroy" to CURRENT_CONTEXT and implicitly destroy them. Only one
problem - if someone attach "live" PMC from outer context to "destroy
list" we will crash. Epically.
--
Bacek
More information about the parrot-dev
mailing list