projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mono
/
sgen
/
sgen-thread-pool.c
diff --git
a/mono/sgen/sgen-thread-pool.c
b/mono/sgen/sgen-thread-pool.c
index 211bc8b7277975471954dec78c7775c9a8e8c9f6..c9aaaa2667b5cb9b45cf5b7427f43e8a8bd96060 100644
(file)
--- a/
mono/sgen/sgen-thread-pool.c
+++ b/
mono/sgen/sgen-thread-pool.c
@@
-305,6
+305,10
@@
sgen_thread_pool_shutdown (void)
mono_os_mutex_destroy (&lock);
mono_os_cond_destroy (&work_cond);
mono_os_cond_destroy (&done_cond);
+
+ for (int i = 0; i < threads_num; i++) {
+ mono_threads_add_joinable_thread ((gpointer)threads [i]);
+ }
}
SgenThreadPoolJob*