[Haskell-cafe] rts nursery and stopping the world minor gc

Brandon Allbery allbery.b at gmail.com
Thu Jun 8 19:08:14 UTC 2017


On Thu, Jun 8, 2017 at 3:05 PM, Ruben Astudillo <ruben.astud at gmail.com>
wrote:

> On 08/06/17 15:03, Brandon Allbery wrote:
> > On Thu, Jun 8, 2017 at 3:00 PM, Ruben Astudillo <ruben.astud at gmail.com
> > <mailto:ruben.astud at gmail.com>> wrote:
> >     When the nursery of a capability gets filled, do we have to
> >     stop-the-world just for that local nursery gc?. To me this is
> different
> >     than gen0 or gen1 gc because isn't really a shared resource.
> >
> > Things that survive garbage collection get promoted out of the nursery.
>
> but being promoted to gen0 is allocation, and thus there isn't need to
> stop the other threads.
>

It's not just allocation: if it didn't get garbage collected, then there is
*at least* one reference to it that needs to be updated. So what happens
when there is more than one, and some of those are active in other threads?

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170608/37efe36b/attachment.html>


More information about the Haskell-Cafe mailing list