[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Opportunistic GC
From: |
Eli Zaretskii |
Subject: |
Re: Opportunistic GC |
Date: |
Wed, 10 Mar 2021 22:48:17 +0200 |
> From: Pip Cet <pipcet@gmail.com>
> Date: Wed, 10 Mar 2021 20:25:04 +0000
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>, Andrea Corallo <akrl@sdf.org>,
> emacs-devel@gnu.org
>
> > There are other potential complications with this, related to
> > threads. Posix says 'fork' only copies a single thread, the one that
> > called it, but what if that single thread is not the main thread?
>
> Why would that be a problem?
Well, I mentioned one aspect that should be considered below. There
are probably others, as we never intended for one of these threads to
be left alone. E.g., what about error handling? non-main threads have
a very simplistic one.
> > In
> > Emacs nowadays a non-main Lisp thread can trigger GC. What happens to
> > the mutexes we use in the threads machinery when we fork like that?
>
> In the child, they're irrelevant
They are? Don't you intend to send the results to the parent process?
or read some stuff from the parent? Doesn't that mean you'd need to
call pselect?
> Everything should be fine...
Famous last words ;-)
- Re: Opportunistic GC, (continued)
- Re: Opportunistic GC, Andrea Corallo, 2021/03/08
- Re: Opportunistic GC, Pip Cet, 2021/03/08
- Re: Opportunistic GC, Stefan Monnier, 2021/03/08
- Re: Opportunistic GC, Andrea Corallo, 2021/03/08
- Re: Opportunistic GC, Philipp Stephani, 2021/03/08
- Re: Opportunistic GC, Andrea Corallo, 2021/03/08
- Re: Opportunistic GC, Philipp Stephani, 2021/03/08
- Re: Opportunistic GC, Stefan Monnier, 2021/03/08
- Re: Opportunistic GC, Eli Zaretskii, 2021/03/08
- Re: Opportunistic GC, Pip Cet, 2021/03/10
- Re: Opportunistic GC,
Eli Zaretskii <=
- Re: Opportunistic GC, Pip Cet, 2021/03/11
- Re: Opportunistic GC, Eli Zaretskii, 2021/03/11
- Re: Opportunistic GC, Pip Cet, 2021/03/11
- Re: Opportunistic GC, Eli Zaretskii, 2021/03/11
- Re: Opportunistic GC, Pip Cet, 2021/03/11
- Re: Opportunistic GC, Eli Zaretskii, 2021/03/11
- Re: Opportunistic GC, Richard Stallman, 2021/03/09
- Re: Opportunistic GC, Pip Cet, 2021/03/09
- Re: Opportunistic GC, Richard Stallman, 2021/03/10
Re: Opportunistic GC, Eli Zaretskii, 2021/03/08