From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: Re: emacs-22.1 with GTK problems (with patches) Date: Fri, 14 Sep 2007 15:16:44 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <46EA24DB.1060602@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189750624 29943 80.91.229.12 (14 Sep 2007 06:17:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 06:17:04 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Jan =?ISO-8859-1?Q?Dj=E4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 08:17:02 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IW4U5-0007Hw-8e for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2007 08:16:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IW4U4-0005dN-Kj for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2007 02:16:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IW4U1-0005dI-Vo for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2007 02:16:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IW4Ty-0005d2-Go for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2007 02:16:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IW4Ty-0005cz-EH for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2007 02:16:50 -0400 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2] helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IW4Tx-0001Nu-Qq for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2007 02:16:50 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id DBFB92C4A; Fri, 14 Sep 2007 15:16:44 +0900 (JST) In-Reply-To: <46EA24DB.1060602@swipnet.se> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-Detected-Kernel: NetBSD 3.0 (DF) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16554 Archived-At: >>>>> On Fri, 14 Sep 2007 08:06:19 +0200, Jan Dj=E4rv = said: >> On Solaris 2.6 there is no recursive mutex support. > Then we can not support that platform. I can put in a configure > test for recursive mutexes, but we have to fail with an error if > there is no such thing. What do you think about the change below? (I asked the OP whether a similar change works in http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00060.html, but no reply yet. ) YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp Index: src/alloc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/emacs/emacs/src/alloc.c,v retrieving revision 1.415 diff -c -p -r1.415 alloc.c *** src/alloc.c 29 Aug 2007 05:27:51 -0000 1.415 --- src/alloc.c 14 Sep 2007 06:09:50 -0000 *************** void *** 1356,1361 **** --- 1356,1362 ---- uninterrupt_malloc () { #ifdef HAVE_GTK_AND_PTHREAD + #ifdef DOUG_LEA_MALLOC pthread_mutexattr_t attr; =20 /* GLIBC has a faster way to do this, but lets keep it portable. *************** uninterrupt_malloc () *** 1363,1368 **** --- 1364,1374 ---- pthread_mutexattr_init (&attr); pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE); pthread_mutex_init (&alloc_mutex, &attr); + #else /* !DOUG_LEA_MALLOC */ + /* Some systems such as Solaris 2.6 doesn't have a recursive mutex, + and the bundled gmalloc.c doesn't require it. */ + pthread_mutex_init (&alloc_mutex, NULL); + #endif /* !DOUG_LEA_MALLOC */ #endif /* HAVE_GTK_AND_PTHREAD */ =20 if (__free_hook !=3D emacs_blocked_free)