diff -uprN mono-5.8.0.108.old/mono/metadata/threads.c mono-5.8.0.108/mono/metadata/threads.c --- mono-5.8.0.108.old/mono/metadata/threads.c 2018-01-19 18:09:55.000000000 +0300 +++ mono-5.8.0.108/mono/metadata/threads.c 2018-02-03 01:53:45.151973092 +0300 @@ -1863,7 +1863,7 @@ ves_icall_System_Threading_Thread_Join_i /* Wait for the thread to really exit */ MonoNativeThreadId tid = thread_get_tid (thread); - mono_thread_join (tid); + mono_thread_join ((gpointer)tid); return TRUE; }