Use mono-tls for the current domain.
commit764f9cbd32ee16f86d405b58a69c4e252624668c
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 6 Dec 2011 11:12:48 +0000 (6 09:12 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 6 Dec 2011 11:12:48 +0000 (6 09:12 -0200)
tree5e59ab14cad6a1dbb1240e667656ece842a7eaf1
parenta96b9dd61494d7f1ae22523301f283e11da65f85
Use mono-tls for the current domain.

* domain.c: Use mono-tls for the current domain variable.
Sgen depends on this so it has to be lock free and the
io-layer version is not.

Fixes bxc #2326
mono/metadata/domain.c
mono/metadata/object-internals.h
mono/metadata/sgen-os-mach.c
mono/mini/mini-amd64.c
mono/mini/mini-mips.c
mono/mini/mini-ppc.c
mono/mini/mini-x86.c