projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[threads] Inline thread_cleanup into mono_thread_detach_internal (#4119)
[mono.git]
/
mono
/
metadata
/
threadpool-ms-io-kqueue.c
diff --git
a/mono/metadata/threadpool-ms-io-kqueue.c
b/mono/metadata/threadpool-ms-io-kqueue.c
index e162c3cc9be24eec2bc8dfe1558449bedb9ac314..4422b668e8f61c7c2d2a630e1b1cb702dfb5fd56 100644
(file)
--- a/
mono/metadata/threadpool-ms-io-kqueue.c
+++ b/
mono/metadata/threadpool-ms-io-kqueue.c
@@
-81,7
+81,9
@@
kqueue_event_wait (void (*callback) (gint fd, gint events, gpointer user_data),
mono_gc_set_skip_thread (TRUE);
+ MONO_ENTER_GC_SAFE;
ready = kevent (kqueue_fd, NULL, 0, kqueue_events, KQUEUE_NEVENTS, NULL);
+ MONO_EXIT_GC_SAFE;
mono_gc_set_skip_thread (FALSE);