tech-kern archive

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

Re: [RFC][PATCH] _UC_TLSBASE for all ports



Matt Thomas <matt%3am-software.com@localhost> wrote:

> I concur.  A thread's stack is its identity and one can't swap stacks
> without swapping its sense of self.  (granted thread local storage
> helps but that isn't universally available).

This is not about the stack, this is about pthread_self() which can be
changed by swapcontext(), making duplicate threads with the same
pthread_self() and breaking mapping between userland and kernel threads.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index