Skip to content

Conversation

@xeioex
Copy link
Contributor

@xeioex xeioex commented Aug 11, 2025

This change allows EarleyBoyer benchmark from
arewefastyet/benchmarks/v8-v7 to pass with default settings.

Previous commit 5e9a6d5 (v0.7.9) reduced the stack size to prevent stack overflow when compiling with -O0 in computed goto mode, where native stack frames for njs_vmcode_interpreter() consume ~80KB each. To address this, we now set a lower maximum stack size specifically for unit tests.

This fixes #939 issue on Github.

@github-actions
Copy link

github-actions bot commented Aug 11, 2025

✅ All required contributors have signed the F5 CLA for this PR. Thank you!
Posted by the CLA Assistant Lite bot.

This change allows EarleyBoyer benchmark from
arewefastyet/benchmarks/v8-v7 to pass with default settings.

Previous commit 5e9a6d5 (v0.7.9) reduced the stack size to prevent stack
overflow when compiling with -O0 in computed goto mode, where native
stack frames for njs_vmcode_interpreter() consume ~80KB each. To address
this, we now set a lower maximum stack size specifically for unit tests.

This fixes nginx#939 issue on Github.
@xeioex xeioex force-pushed the increase_max_stack_size branch from ac887ac to 6a9e24a Compare August 11, 2025 23:37
@xeioex
Copy link
Contributor Author

xeioex commented Aug 11, 2025

I have hereby read the F5 CLA and agree to its terms

Copy link
Contributor

@VadimZhestikov VadimZhestikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@xeioex xeioex merged commit 972951a into nginx:master Aug 12, 2025
2 of 3 checks passed
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.

EarleyBoyer: RangeError: Maximum call stack size exceeded

2 participants