emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump)


From: YAMAMOTO Mitsuharu
Subject: Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump)
Date: Wed, 01 Aug 2007 19:07:47 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.1.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Wed, 01 Aug 2007 18:35:40 +0900, YAMAMOTO Mitsuharu <address@hidden> 
>>>>> said:

>> Totally thread safe is impossible, but for Emacs we don't need
>> that.  It should be OK to initialize gmalloc in a non-thread safe
>> way because it is done in main (or possibly before) before any
>> threads are created.

> I didn't mean the initialization problem with respect to
> pthread_once.  The followup report shows that there's another
> infinite recursion like pthread_mutex_lock -> -> malloc -> ->
> pthread_mutex_lock -> ... when a certain (statically initialized)
> mutex is used first.

Ah, maybe I misunderstood what you mean.  It might be possible to call
pthread_mutex_init for all malloc mutexes at the (non-thread-safe)
initialization stage with temporarily disabling the use of the
mutexes.

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

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