fix mac- and gui-specific GC bug

This bug was introduced indirectly in the switch to
poll()/epoll()/kevent().
This commit is contained in:
Matthew Flatt 2011-11-24 15:58:40 -07:00
parent aab4260127
commit a7ae78f3cc

View File

@ -1276,6 +1276,10 @@ void scheme_clean_fd_set(void *fds)
}
int scheme_get_fd_limit(void *fds)
XFORM_SKIP_PROC
/* This function must not allocate or call GC-cooperating functions.
It's constrained because it's used by default_sleep, which
must not allocate on Mac OS X. */
{
int limit, actual_limit;
fd_set *rd, *wr, *ex;