-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfault when compiling nqp with musl as libc
Because optimize_bb() can be deeply recursive, separate as much code as possible into a separate function optimize_bb_switch(), so we don't trash the stack. This fixes a segfault that occured when compiling nqp on Alpine Linux which uses musl as its libc.
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 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