René's URL Explorer Experiment


Title: v24: discarded vm contexts cause OOM; possible V8 backport · Issue #66053 · nodejs/node · GitHub

Open Graph Title: v24: discarded vm contexts cause OOM; possible V8 backport · Issue #66053 · nodejs/node

X Title: v24: discarded vm contexts cause OOM; possible V8 backport · Issue #66053 · nodejs/node

Description: Version v24.21.0 Platform Linux x86_64, kernel 6.8.0-139-generic Subsystem vm, V8 What steps will reproduce the bug? Save as repro.mjs; run node --max-old-space-size=128 repro.mjs. import { runInNewContext } from "node:vm"; import { setI...

Open Graph Description: Version v24.21.0 Platform Linux x86_64, kernel 6.8.0-139-generic Subsystem vm, V8 What steps will reproduce the bug? Save as repro.mjs; run node --max-old-space-size=128 repro.mjs. import { runInNe...

X Description: Version v24.21.0 Platform Linux x86_64, kernel 6.8.0-139-generic Subsystem vm, V8 What steps will reproduce the bug? Save as repro.mjs; run node --max-old-space-size=128 repro.mjs. import { runInNe...

Opengraph URL: https://github.com/nodejs/node/issues/66053

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"v24: discarded vm contexts cause OOM; possible V8 backport","articleBody":"### Version\n\nv24.21.0\n\n### Platform\n\n```text\nLinux x86_64, kernel 6.8.0-139-generic\n```\n\n### Subsystem\n\nvm, V8\n\n### What steps will reproduce the bug?\n\nSave as `repro.mjs`; run `node --max-old-space-size=128 repro.mjs`.\n\n```js\nimport { runInNewContext } from \"node:vm\";\nimport { setImmediate } from \"node:timers/promises\";\n\nconst source = `\n  globalThis.payload = new Array(1_000_000).fill(0);\n  ${Array.from({ length: 30 }, (_, index) => `\n    function work${index}(values) {\n      let result = 0;\n      for (let i = 0; i \u003c values.length; ++i) {\n        result += Math.sqrt(values[i] * values[i] + ${index});\n      }\n      return result;\n    }\n  `).join(\"\\n\")}\n  const values = [1, 2, 3, 4, 5];\n  for (let i = 0; i \u003c 1000; ++i) {\n    ${Array.from({ length: 30 }, (_, index) => `work${index}(values);`).join(\"\\n\")}\n  }\n`;\n\nfor (let i = 0; i \u003c 100; ++i) {\n  runInNewContext(source + `\\n// ${i}`);\n  await setImmediate();\n}\nconsole.log(\"Completed\");\n```\n\n### How often does it reproduce? Is there a required condition?\n\nRepeatedly on v24.15.0, v24.16.0, and v24.21.0. Completes on v22.23.2, v26.8.2, or with `--no-concurrent-recompilation` on v24.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nPrint `Completed`; discarded contexts should be collectible.\n\n### What do you see instead?\n\n```\nFATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory\n```\n\n### Additional information\n\nThis surfaced in jsdom’s WPT runner with the default ~4 GB heap; the smaller limit makes this reproduction quick. Sampled heap retainers point through V8’s `IdentityMapBase` to realm prototypes, keeping entire windows alive.\n\nCould V8’s [“Stop collecting array and object prototypes”](https://github.com/v8/v8/commit/8901c793e4392dfea261bcbf9c679e2978847d4d) change be backported to v24? Its later [thread-safety follow-up](https://github.com/v8/v8/commit/c3553509f460b104cb8d4faf610d229a2d033f7b) might also be relevant.\n\nI haven't verified that those commits are the key ones, but it's worth trying.","author":{"url":"https://github.com/domenic","@type":"Person","name":"domenic"},"datePublished":"2026-09-16T03:36:30Z","url":"https://github.com/nodejs/node/issues/66053"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:39005b1c-64fd-f2f4-bdba-df141dadf9c6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id83EE:D9695:76B397:9A8F99:6AED32AB
html-safe-nonce983a4f8f87a4fa842b066f3be56ab9d02c8cfc78c3f7580354c38f0d1a0bece4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0VFOkQ5Njk1Ojc2QjM5Nzo5QThGOTk6NkFFRDMyQUIiLCJ2aXNpdG9yX2lkIjoiMjk4NTYyODgzNTIyNzk3MjI2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7279683e6949211008b6c1604eb6bf8cbf27afea53a6cd9c574be016b99dc01c
hovercard-subject-tagissue:5469917441
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/66053/issue_layout
twitter:imagehttps://opengraph.githubassets.com/34a120285f4aa31441714b3a8a3eb16ee3e2bac9faf2e8429b1071e95d834d51/nodejs/node/issues/66053
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/34a120285f4aa31441714b3a8a3eb16ee3e2bac9faf2e8429b1071e95d834d51/nodejs/node/issues/66053
og:image:altVersion v24.21.0 Platform Linux x86_64, kernel 6.8.0-139-generic Subsystem vm, V8 What steps will reproduce the bug? Save as repro.mjs; run node --max-old-space-size=128 repro.mjs. import { runInNe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedomenic
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/66053#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F66053
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F66053
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/66053
Reloadhttps://github.com/nodejs/node/issues/66053
Reloadhttps://github.com/nodejs/node/issues/66053
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests665 (665)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66053
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66053
v24: discarded vm contexts cause OOM; possible V8 backporthttps://github.com/nodejs/node/issues/66053#top
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
v24.xIssues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v24.x%22
v8 engineIssues and PRs related to the V8 dependency.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v8%20engine%22
vmIssues and PRs related to the vm subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22vm%22
https://github.com/domenic
domenichttps://github.com/domenic
on Sep 16, 2026https://github.com/nodejs/node/issues/66053#issue-5469917441
“Stop collecting array and object prototypes”https://github.com/v8/v8/commit/8901c793e4392dfea261bcbf9c679e2978847d4d
thread-safety follow-uphttps://github.com/v8/v8/commit/c3553509f460b104cb8d4faf610d229a2d033f7b
domenichttps://github.com/domenic
on Sep 16, 2026https://github.com/nodejs/node/issues/66053#event-31218465637
Disable unused HTML reports in the WPT runnerhttps://github.com/jsdom/jsdom/commit/3be65d931da2a693a6cefaa9d623da2416177c9e
3be65d9https://github.com/jsdom/jsdom/commit/3be65d931da2a693a6cefaa9d623da2416177c9e
https://github.com/inoway46
inoway46https://github.com/inoway46
on Sep 16, 2026https://github.com/nodejs/node/issues/66053#issuecomment-5693400701
v22.23.2https://github.com/inoway46/node/actions/runs/35064794217
v24.21.0https://github.com/inoway46/node/actions/runs/35060475008
v26.8.2https://github.com/inoway46/node/actions/runs/35064794216
inoway46https://github.com/inoway46
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
vmIssues and PRs related to the vm subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22vm%22
v8 engineIssues and PRs related to the V8 dependency.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v8%20engine%22
v24.xIssues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v24.x%22
on Sep 16, 2026https://github.com/nodejs/node/issues/66053#event-31226333065
https://github.com/inoway46
inoway46https://github.com/inoway46
on Sep 17, 2026https://github.com/nodejs/node/issues/66053#issuecomment-5709315930
https://github.com/inoway46/node/actions/runs/35083804474https://github.com/inoway46/node/actions/runs/35083804474
aduh95https://github.com/aduh95
on Oct 10, 2026https://github.com/nodejs/node/issues/66053#event-32956385346
deps: V8: backport c3553509f460https://github.com/nodejs/node/commit/ba09b53487ebf4a3c37f2b8f12c114a32ceed8bd
ba09b53https://github.com/nodejs/node/commit/ba09b53487ebf4a3c37f2b8f12c114a32ceed8bd
https://github.com/inoway46
inoway46https://github.com/inoway46
on Oct 11, 2026https://github.com/nodejs/node/issues/66053#issuecomment-6104836067
#66089https://github.com/nodejs/node/pull/66089
inoway46https://github.com/inoway46
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 11, 2026https://github.com/nodejs/node/issues/66053#event-32968553844
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/66053
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66053
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
v24.xIssues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v24.x%22
v8 engineIssues and PRs related to the V8 dependency.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v8%20engine%22
vmIssues and PRs related to the vm subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22vm%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.