FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: use a higher limit in the NearHeapLimitCallback by joyeecheung · Pull Request #41041 · nodejs/node · GitHub

/ node Public

src: use a higher limit in the NearHeapLimitCallback - #41041

Closed
joyeecheung wants to merge 1 commit into
nodejs:masterfrom
joyeecheung:heap-limit
Closed

src: use a higher limit in the NearHeapLimitCallback#41041
joyeecheung wants to merge 1 commit into
nodejs:masterfrom
joyeecheung:heap-limit

Conversation

Copy link
Copy Markdown
Member

V8 requires the NearHeapLimitCallback to return a limit that's higher
than the initial one or otherwise it will crash.

Refs: #41013

cc @targos

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Nov 30, 2021
V8 requires the NearHeapLimitCallback to return a limit that's higher
than the initial one or otherwise it will crash.

Copy link
Copy Markdown
Collaborator

targos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Confirmed it fixes the issue from #41013

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

joyeecheung added a commit that referenced this pull request Dec 3, 2021
V8 requires the NearHeapLimitCallback to return a limit that's higher
than the initial one or otherwise it will crash.

PR-URL: #41041
Refs: #41013
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>

Copy link
Copy Markdown
Member Author

Landed in 3f51f05

joyeecheung closed this Dec 3, 2021
danielleadams pushed a commit that referenced this pull request Dec 14, 2021
V8 requires the NearHeapLimitCallback to return a limit that's higher
than the initial one or otherwise it will crash.

PR-URL: #41041
Refs: #41013
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 31, 2022
V8 requires the NearHeapLimitCallback to return a limit that's higher
than the initial one or otherwise it will crash.

PR-URL: #41041
Refs: #41013
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 31, 2022
V8 requires the NearHeapLimitCallback to return a limit that's higher
than the initial one or otherwise it will crash.

PR-URL: #41041
Refs: #41013
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Feb 1, 2022
V8 requires the NearHeapLimitCallback to return a limit that's higher
than the initial one or otherwise it will crash.

PR-URL: #41041
Refs: #41013
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams mentioned this pull request Feb 1, 2022
max-lt added a commit to openworkers/openworkers-runtime-v8 that referenced this pull request Feb 28, 2026
…llback

V8 requires the NearHeapLimitCallback to return a limit higher than
current_heap_limit, otherwise it goes straight to FatalProcessOutOfMemory
and crashes the entire process. The previous code returned the same value,
which V8 interpreted as "no room given".

Now always returns current_heap_limit + 2MB headroom so V8 can complete
the pending allocation and return to JS where terminate_execution() takes
effect. This matches Node.js's fix (nodejs/node#41041) and Supabase
edge-runtime's low_memory_multiplier approach.

Bump 0.13.9 → 0.13.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL