[runtime] Move thread attaching to mono-threads from the io-layer.
[mono.git] / mono / utils / mono-threads.c
index 766159fb2bdd3fbe14716234dbd517188c59ca8c..e811b77fcf2997f0be978fc9b0dfa58e0ad7e81c 100644 (file)
@@ -168,6 +168,8 @@ unregister_thread (void *arg)
 
        THREADS_DEBUG ("unregistering info %p\n", info);
 
+       mono_threads_core_unregister (info);
+
        /*
         * TLS destruction order is not reliable so small_id might be cleaned up
         * before us.