Skip to content

fix: reduce stack memory consumption in BytecodeGenerator#49360

Merged
deepak1556 merged 1 commit into39-x-yfrom
robo/fix_stackoverflow_nested_functions
Jan 13, 2026
Merged

fix: reduce stack memory consumption in BytecodeGenerator#49360
deepak1556 merged 1 commit into39-x-yfrom
robo/fix_stackoverflow_nested_functions

Conversation

@deepak1556
Copy link
Copy Markdown
Member

Description of Change

For microsoft/vscode#283403

Backports

  1. https://chromium-review.googlesource.com/c/v8/v8/+/7180480
  2. https://chromium-review.googlesource.com/c/v8/v8/+/7160576
  3. https://chromium-review.googlesource.com/c/v8/v8/+/7062734

2 and 3 are needed to cleanly land 1. However, most of the code changes are noop since v8_flags.proto_assign_seq_opt is experimental in this branch and disabled by default. The reason why stack memory consumption is improved for all scenarios can be found in microsoft/vscode#283403 (comment)

NB: Changes are present in M144 and higher

Release Notes

Notes: fix stack overflow when compiling deeply nested JS functions

@deepak1556 deepak1556 requested a review from a team as a code owner January 12, 2026 11:18
@deepak1556 deepak1556 added semver/patch backwards-compatible bug fixes backport-check-skip Skip trop's backport validity checking labels Jan 12, 2026
Backports

1) https://chromium-review.googlesource.com/c/v8/v8/+/7180480
2) https://chromium-review.googlesource.com/c/v8/v8/+/7160576
3) https://chromium-review.googlesource.com/c/v8/v8/+/7062734

2 and 3 are needed to cleanly land 1. However, most of the code
changes are noop since v8_flags.proto_assign_seq_opt is experimental
and disabled by default for feature. The reason why stack memory
consumption is improved for all scenarios can be found in
microsoft/vscode#283403 (comment)
@deepak1556 deepak1556 force-pushed the robo/fix_stackoverflow_nested_functions branch from e208c7a to 6706b23 Compare January 13, 2026 06:04
@deepak1556 deepak1556 merged commit 744142f into 39-x-y Jan 13, 2026
55 checks passed
@deepak1556 deepak1556 deleted the robo/fix_stackoverflow_nested_functions branch January 13, 2026 10:04
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Jan 13, 2026

Release Notes Persisted

fix stack overflow when compiling deeply nested JS functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants