Skip to content

Commit 9659e3c

Browse files
committed
Remove extra decrement to 'threadpool_jobs'. It is done already via call to threadpool_jobs_dec. This was added right before we branched off master and I think it was done in error.
1 parent 816a98d commit 9659e3c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mono/metadata/threadpool.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,6 @@ clear_queue (CRITICAL_SECTION *cs, TPQueue *list, MonoDomain *domain)
13061306
unregister_job ((MonoAsyncResult*)obj);
13071307

13081308
mono_array_set (list->array, MonoObject*, i, NULL);
1309-
InterlockedDecrement (&domain->threadpool_jobs);
13101309
++count;
13111310
}
13121311
}

0 commit comments

Comments
 (0)