[runtime] Fix Thread.CurrentThread in non-root appdomains by setting the tls slot...
authorZoltan Varga <vargaz@gmail.com>
Sun, 15 Nov 2015 13:32:36 +0000 (08:32 -0500)
committerZoltan Varga <vargaz@gmail.com>
Sun, 15 Nov 2015 13:32:36 +0000 (08:32 -0500)
commitea09193eb876a2020cb3e0ae72138b5f73774c06
treec78f705c61fb73c0dbd16288ecb971e6406da078
parenta75a39e4df67b1c2ce549663c84f738bd67942c1
[runtime] Fix Thread.CurrentThread in non-root appdomains by setting the tls slot in start_wrapper, otherwise Thread.CurrentThread would create a new Thread object so there would be two. Fixes #35828.
mcs/class/corlib/Test/System.Threading/ThreadTest.cs
mono/metadata/threads.c