[Top][All Lists]
[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 18:35:40 +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 11:20:26 +0200, Jan Djärv <address@hidden> said:
> YAMAMOTO Mitsuharu skrev:
>>
>> A comment in src/lib/libc/stdlib/malloc.c (FreeBSD Current) says:
>>
>> /* * Mutexes based on spinlocks. We can't use normal pthread
>> mutexes, because * they require malloc()ed memory. */
>>
>> So it seems to be impossible to make src/gmalloc.c thread-safe only
>> using pthread mutexes.
> 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.
YAMAMOTO Mitsuharu
address@hidden
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), YAMAMOTO Mitsuharu, 2007/08/01
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), Jan Djärv, 2007/08/01
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump),
YAMAMOTO Mitsuharu <=
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), YAMAMOTO Mitsuharu, 2007/08/01
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), YAMAMOTO Mitsuharu, 2007/08/01
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), Jan Djärv, 2007/08/01
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), Jan Djärv, 2007/08/01
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), Miles Bader, 2007/08/01
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), Jan D., 2007/08/01
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), YAMAMOTO Mitsuharu, 2007/08/06
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), YAMAMOTO Mitsuharu, 2007/08/06
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), Herbert J. Skuhra, 2007/08/06
- Re: emacs-unicode-2 bootstrap on FreeBSD (temacs coredump), Ryan Yeske, 2007/08/06