From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: port threadsafety redux Date: Wed, 04 Mar 2015 11:18:05 +0100 Message-ID: <87sidljcbm.fsf@gnu.org> References: <87vbj816sg.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1425464304 4239 80.91.229.3 (4 Mar 2015 10:18:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 10:18:24 +0000 (UTC) Cc: "Mark H. Weaver" , guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 04 11:18:23 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YT6Nd-0002on-Fy for guile-devel@m.gmane.org; Wed, 04 Mar 2015 11:18:17 +0100 Original-Received: from localhost ([::1]:42997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT6Nc-00060Z-Ld for guile-devel@m.gmane.org; Wed, 04 Mar 2015 05:18:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT6Na-0005zV-G0 for guile-devel@gnu.org; Wed, 04 Mar 2015 05:18:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YT6NV-00039i-9r for guile-devel@gnu.org; Wed, 04 Mar 2015 05:18:14 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT6NV-00039e-7e for guile-devel@gnu.org; Wed, 04 Mar 2015 05:18:09 -0500 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]:51186 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YT6NT-00029G-VY; Wed, 04 Mar 2015 05:18:08 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?utf-8?Q?Vent=C3=B4se?= an 223 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87vbj816sg.fsf@pobox.com> (Andy Wingo's message of "Wed, 11 Feb 2015 22:23:43 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17681 Archived-At: Andy Wingo 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 (=C3=A0 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=E2=80=99d like to hear what Mark think= s. :-) Ludo=E2=80=99.