Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Improve nodejs stack size limit heuristic. #1122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

nevkontakte
Copy link
Member

Setting stack size exactly to the system limit will cause node to
segfault before it has a chance to notice that it ran out of space. In
my experiemnts values closer than 64 KiB may still cause a segfault from
time to time.

I also changed the multiplier to 1024, since that's what v8 actually
uses for the flag value.

Fixes #470.

@nevkontakte nevkontakte requested a review from flimzy June 8, 2022 20:30
@nevkontakte nevkontakte enabled auto-merge June 8, 2022 20:32
tool.go Show resolved Hide resolved
Setting stack size exactly to the system limit will cause node to
segfault before it has a chance to notice that it ran out of space. In
my experiemnts values closer than 64 KiB may still cause a segfault from
time to time.

I also changed the multiplier to 1024, since that's what v8 actually
uses for the flag value.
@nevkontakte nevkontakte merged commit f2ebe46 into gopherjs:master Jun 13, 2022
@nevkontakte nevkontakte deleted the issue470 branch June 13, 2022 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Maximum call stack size exceeded" errors get swallowed
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.