emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about throw-on-input


From: Eli Zaretskii
Subject: Re: Questions about throw-on-input
Date: Tue, 12 May 2020 17:37:08 +0300

> Cc: address@hidden, address@hidden, address@hidden
> From: Daniel Colascione <address@hidden>
> Date: Mon, 11 May 2020 19:39:33 -0700
> 
> > And while we are on the topic of threads, I wonder what is the
> > maintainers' opinion on https://nullprogram.com/blog/2018/05/31/,
> > specifically this part:
> > 
> >  > Update: ThreadSanitizer (TSan) quickly shows that Emacs’ threading
> >  > implementation has many data races, making it completely
> >  > untrustworthy. Until this is fixed, nobody should use Emacs threads
> >  > for any purpose, and threads should disabled at compile time.
> 
> Is TSan is just getting confused by the global lock? We don't have any 
> parallelism, so data races shouldn't be happening at all.

There doesn't seem to be any detailed description of the races it
uncovered, so it could well be that this is a red herring.

I do know about some racy conditions where we release the GIL and
select the next thread to run, but I'm cannot be sure they are the
same ones this blog is talking about.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]