tech-userlevel archive

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

Re: [PATCH] libpthread NOLOAD removal



In article <1kyf6pf.1hvq3jym75a09M%manu%netbsd.org@localhost>,
Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
>Here is my llatest patch for libpthread NOLOAD removal. It implements
>minimal mutex, condvar and rwlock operations in libc thread stubs, so
>that theses objects can be handled by both libc and libpthread after
>libpthread has been loaded by dlopen.
>
>http://ftp.espci.fr/shadow/manu/pthread5.patch
>
>Performance hit has been evaluated: it is not significant for running
>NetBSD's build.sh. On a billion calls to gmtime(), I get a 1%
>performance hit.
>
>Note that we catch calls to pthread_create() for programs not linked
>with -lpthread and we abort, since we cannot reliabily support that for
>now. We could do it if we move the full mutex, condvar and rwlock
>operations from libthread to libc. Since that would bump library
>versions, I suggest it could be done in a second step, so that the first
>step (minimal operation in libc stubs) can be backported to netbsd-6.

Why rename the #defines? I'd like to reduce the size of the diff as
much as possible.

christos



Home | Main Index | Thread Index | Old Index