At 2:44 PM -0700 1/19/04, Luke Palmer wrote:
Dan's thread proposal mentions:
=item Automatic PMC sharing will be provided

 When a PMC is placed into a container which is shared (including
 lexical pads and global namespaces) then that PMC will automatically
 be marked as shared. It is acceptable for this to trigger an
 exception if for some reason a PMC should not be shared between
 interpreters.

 PMCs are, by default, not shared. This avoids sharing overhead for
 PMCs which are only used as temporaries and not shared. (Note that
 this is dangerous, and may end up not being done, due to the sharing
 of continuations)

I don't know why this is dangerous. A continuation is a data structure just like an array or a hash. When you share it, everything "inside" it gets shared, too. For a continuation, this could be an awful lot of stuff, but it's the safe way.

True, but the danger part is if we don't mark everything grabbed by a continuation as shared by default. If we do, we might as well mark everything as shared, as there'll be less overhead.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to