[aot] Don't aot methods that use tls on HAVE_KW_THREAD platforms
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 11 Aug 2016 20:28:49 +0000 (23:28 +0300)
committerVlad Brezae <brezaevlad@gmail.com>
Wed, 17 Aug 2016 22:00:10 +0000 (01:00 +0300)
commit47f6f8cfde26efff4518cf225e62f59f5cd0abcb
treeda2b52d436badc903dbf1584edc634adc38bd952
parent8dbf5df12ebe11b420d67b1d2a80a81f99c93799
[aot] Don't aot methods that use tls on HAVE_KW_THREAD platforms

MONO_THREAD_VAR_OFFSET definitions don't work when loading mono as a dynamic library. This means that we need to be conservative and don't aot code that contains these tls chunks.

In the future, we should remove HAVE_KW_THREAD altogether and use only pthread since it simplifies the code alot.
mono/mini/mini.c