PATCH: Handle DF_1_INTERPOSE
H. J. Lu
hjl@lucon.org
Sun Jun 1 04:39:00 GMT 2003
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.
More information about the Libc-alpha
mailing list