FreeBSD pthread_equal "bug"
Daniel Eischen
eischen at pcnet.com
Thu Jun 5 09:13:04 PDT 2003
On Thu, 5 Jun 2003, Terry Lambert wrote:
> Daniel Eischen wrote:
> > Process id's can wrap around so it can eventually happen.
> >
> > This is a bug in the application; the implementation is allowed
> > to reuse thread id's and there are enough interfaces for an
> > application to tell when a thread terminates (pthread_join).
> >
> > Perhaps our use of thread id's could be changes so that they
> > were cached at the end of the free thread list, but cacheing
> > them at the front seems to highlight bad applications, so
> > that's a bonus ;-)
>
> So's not explicitly protecting dlopen(), and so's not forcing
I never committed anything that protected dlopen(), and
> rescheduling of the thread that was running at preemption time,
> when returning from an involuntary preemption. ;^).
also never committed anything to do this either.
The rtld-elf fixes were not specifically related to dlopen().
Binding of objects was not thread-safe even if dlopen() was not
used.
--
Dan Eischen
More information about the freebsd-threads
mailing list