]> git.kaiwu.me - njs.git/commit
Change: increasing the default stack size to 160k.
authorDmitry Volyntsev <xeioex@nginx.com>
Mon, 11 Aug 2025 23:25:47 +0000 (16:25 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 12 Aug 2025 01:57:41 +0000 (18:57 -0700)
commit972951a4286101776c3a4cee2a33ac3dd4be4ec9
tree33b6040354437e2dd07d778e5762fec68506502f
parentd93680e26b6f60226a0cc89fcc48db72d68a226c
Change: increasing the default stack size to 160k.

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.
src/njs_vm.h
src/test/njs_unit_test.c