You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2018. It is now read-only.
The CF thread that drives FSEvents should be started lazily, i.e. when the first FSEvents handle is created.
Limiting its stack size would be good, too. I'm not sure how much address space XNU reserves for a new thread but if it's more than a few pages, it's more than the thread needs.
* Move CF run loop code to fsevents.c.
* Create the fsevents thread on demand rather than at startup.
* Remove use of ACCESS_ONCE. All accesses to loop->cf_loop are
protected by full memory barriers so no reordering can take place.
Fixes#872.
The CF thread that drives FSEvents should be started lazily, i.e. when the first FSEvents handle is created.
Limiting its stack size would be good, too. I'm not sure how much address space XNU reserves for a new thread but if it's more than a few pages, it's more than the thread needs.
/cc @indutny
The text was updated successfully, but these errors were encountered: