This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PATCH: Handle DF_1_INTERPOSE
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Roland McGrath <roland at redhat dot com>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Sat, 31 May 2003 21:39:41 -0700
- Subject: Re: PATCH: Handle DF_1_INTERPOSE
- References: <20030530210937.A15776@lucon.org> <200305310421.h4V4LKR20182@magilla.sf.frob.com> <20030530225049.B16934@lucon.org>
On Fri, May 30, 2003 at 10:50:49PM -0700, H. J. Lu wrote:
> On Fri, May 30, 2003 at 09:21:20PM -0700, Roland McGrath wrote:
> > > Good. Will it help pthread and glibc if libpthreads.so is marked with
> > > DF_1_INTERPOSE?
> >
> > I don't think there is any problem now so as to be looking for such a solution.
>
> Didn't we have to make some changes for weak == global? I thought
> marking libpthreads.so with DF_1_INTERPOSE might improve performance
> and reliability.
>
I took a look at the current linuxthreads implementation. It doesn't
look clean nor straight forward. For each pthread function call in
libc, we do a
if (!not pthread)
call libc version
call pthread version
With DF_1_INTERPOSE, it be changed to
call libc version
Some macros in linuxthreads/sysdeps/pthread/bits/libc-lock.h and
linuxthreads/sysdeps/pthread/bits/libc-tsd.h can also be simpified.
The same may apply to NPTL.
H.J.