Use __declspec(thread) with Visual C++, and __thread with Win32/gcc, (#9594)
commit57be17b069fbd35d90d036140a31085401b8e6cf
authorJay Krell <jay.krell@cornell.edu>
Thu, 19 Jul 2018 16:09:11 +0000 (19 09:09 -0700)
committerGitHub <noreply@github.com>
Thu, 19 Jul 2018 16:09:11 +0000 (19 09:09 -0700)
tree58b102b825a550961ee4d0da9398f76551b57512
parentf9040e5fb3b4c2516659edf6b1df5314ac7a6136
Use __declspec(thread) with Visual C++, and __thread with Win32/gcc, (#9594)

* Use __declspec(thread) with Visual C++, and __thread with Win32/gcc,
instead of much slower TlsGetValue / TlsSetValue

* Avoid affecting Boehm.

* Replace HAVE_KW_THREAD and USE_KW_THREAD with MONO_KEYWORD_THREAD.
configure.ac
mono/mini/driver.c
mono/mini/trace.c
mono/utils/gc_wrapper.h
mono/utils/mono-state.c
mono/utils/mono-threads.c
mono/utils/mono-tls.c
mono/utils/mono-tls.h
winconfig.h