Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
darwin: use default stack size for fsevents pthread on macOS 10.15+
This fixes `SIGBUS` crashes on macOS 10.15 due to FSEvents code attempting to allocate large arrays on the stack. The existing size (`4 * PTHREAD_STACK_MIN` or 32KB) causes a stack overflow when more than ~1000 events are received at once. Removing the manual `pthread_attr_setstacksize` call here defaults to a stack size of 512KB. Fixes: nodejs/node#37697 Refs: joyent/libuv#964
- Loading branch information