[threads] Keep the tid after the thread has finished (#5615)
authorLudovic Henry <ludovic@xamarin.com>
Thu, 21 Sep 2017 13:03:18 +0000 (09:03 -0400)
committerGitHub <noreply@github.com>
Thu, 21 Sep 2017 13:03:18 +0000 (09:03 -0400)
mono/metadata/threads.c

index 3eb6b3b623c8994cf3b2442b79a4270c2eebcc0b..3b5b518666b77822bd077816ca58cc7668b029c8 100644 (file)
@@ -1023,8 +1023,6 @@ static guint32 WINAPI start_wrapper_internal(StartInfo *start_info, gsize *stack
 
        mono_thread_detach_internal (internal);
 
-       internal->tid = 0;
-
        return(0);
 }