-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor fork/clone child stack management.
1. Allocate the child stack using mmap, instead of on the stack. The LLVM may optimize the memory in the wrong way to create a race condition where to memory is still in use but free'ed. 2. Instead of having fix size 4K, we use the ulimit -s set on the system. This is consistant with what fork and pthread_create uses.
- Loading branch information
Showing
1 changed file
with
77 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters