Perform TLS offset detection during startup.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 12 Jun 2013 19:35:20 +0000 (15:35 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 12 Jun 2013 19:42:50 +0000 (15:42 -0400)
commit3be3dc5d167ab7de59c4b91b50c241d3a53aacb7
treeb3c2ab2b57f644b00c91db5ab6ae3f5d62162543
parent5a48d055e24246abbdea330ceb8ae369c393cc6f
Perform TLS offset detection during startup.

* mono-suppport-x86.c (mono_mach_init): Probe TLS slots using an
unlikely canary. Right now only two offsets are known.

* mono-threads.c (mono_threads_init): Initialize mach from here
as remote TLS reads are required for mono-threads to work.
mono/utils/mach-support-amd64.c
mono/utils/mach-support-arm.c
mono/utils/mach-support-unknown.c
mono/utils/mach-support-x86.c
mono/utils/mach-support.h
mono/utils/mono-threads.c