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 <> 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

Home | Main Index | Thread Index | Old Index