guile-devel
[Top][All Lists]
Advanced

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

Re: port threadsafety redux


From: Ludovic Courtès
Subject: Re: port threadsafety redux
Date: Wed, 04 Mar 2015 11:18:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Andy Wingo <address@hidden> skribis:

> Namely, ports can have associated recursive mutexes.  They can be in a
> mode in which every operation on a port grabs the mutex.  The interface
> to set a port into unlocked mode (à la fsetlocking) is unimplemented,
> but the machinery is there.
>
> This change fixed the crashes I was seeing, but it slows down port
> operations.  For an intel chip from a couple years ago the slowdown was
> something on the order of 3x, for a tight putchar() loop; for Loongson
> it could be as bad as 26x.  Mark was unhappy with this.

Thanks for bringing up the issue.  I’d like to hear what Mark thinks.
:-)

Ludo’.



reply via email to

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