Can TLS be implemented switching from MAP_SHARED to MAP_PRIVATE a page reserved for TLS variables ??

Godmar Back godmar@gmail.com
Tue Apr 7 00:01:20 GMT 2020


On Mon, Apr 6, 2020 at 7:57 PM William Tambe via Libc-help
<libc-help@sourceware.org> wrote:
>
> Can TLS be implemented switching from MAP_SHARED to MAP_PRIVATE a page
> reserved for TLS variables ?
>
> Switching such a page from MAP_SHARED to MAP_PRIVATE would effectively
> make it local to that thread.

You're confusing threads and processes.
MAP_PRIVATE means a process-private mapping, not a thread-private mapping.


More information about the Libc-help mailing list