Package: nodejs
Followup-For: Bug #1030284
X-Debbugs-Cc: t...@debian.org

Guidance received from the V8 project (a vendored dependency in the upstream
NodeJS codebase) on the v8-dev mailing list is, in summary/interpretation:

  * It is not yet safe to increase the stack size limit on ARM64 systems.

  * For a given constant stack size, recursion depth is architecture-dependent,
    and so the patch to restore the 984K stack size on ARM64 would not
    provide equal recursion depth on all systems.

  * Exceeding stack depth limits is generally a sign of an application that
    would benefit from relevant refactoring (personal note: for example, by
    reducing the depth of recursion required, or by replacing a recursive
    algorithm with an equivalent iterative algorithm).


Sidenotes:

A patch for 32-bit architectures could apparently be acceptable, although may
be best offered to NodeJS rather than V8.  For what it's worth: NodeJS seems
to have a policy of not accepting patches to their vendored dependencies.

None of this rules out an rlimit-based approach as suggested by Thorsten.

Reply via email to