René's URL Explorer Experiment


Title: fix: template literal OOM error caused by child elements not visible to GC in staticArray by KKiiim · Pull Request #3039 · AssemblyScript/assemblyscript · GitHub

Open Graph Title: fix: template literal OOM error caused by child elements not visible to GC in staticArray by KKiiim · Pull Request #3039 · AssemblyScript/assemblyscript

X Title: fix: template literal OOM error caused by child elements not visible to GC in staticArray by KKiiim · Pull Request #3039 · AssemblyScript/assemblyscript

Description: Root cause: When AssemblyScript compiles a template literal for string concatenation, the compiler generates a static StaticArray as an intermediate buffer. This static array resides in the data segment with its ITCMS GC header gcInfo set to 3 (transparent/pinned color), but the object is neither linked into the pinSpace linked list nor visited by __visit_globals (which explicitly skips static GC objects). As a result, the GC has no way to trace the dynamic child strings written into the array via __uset, and may incorrectly collect strings that are still in use — leading to rtSize corruption, memory corruption, and eventual trap crashes.

Open Graph Description: Root cause: When AssemblyScript compiles a template literal for string concatenation, the compiler generates a static StaticArray<string> as an intermediate buffer. This static array resides ...

X Description: Root cause: When AssemblyScript compiles a template literal for string concatenation, the compiler generates a static StaticArray&lt;string&gt; as an intermediate buffer. This static array ...

Opengraph URL: https://github.com/AssemblyScript/assemblyscript/pull/3039

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1484e81a-d0a2-f2ce-8f38-ea58856be3f5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8982:37BEAD:2AB2697:3A675B3:6B0055A0
html-safe-noncebccf409fe7131b24823c8e45e141501a96664029f57668ffc53a1db4992f09dc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTgyOjM3QkVBRDoyQUIyNjk3OjNBNjc1QjM6NkIwMDU1QTAiLCJ2aXNpdG9yX2lkIjoiODA1NzI1NDE0Mzk0NjkzNzc2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac70b39de8fa3c59d254071d215f2a79dcea4c57b6d495d5573d84544d02974810
hovercard-subject-tagpull_request:4320214131
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/AssemblyScript/assemblyscript/pull/3039/files
twitter:imagehttps://avatars.githubusercontent.com/u/145949907?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/145949907?s=400&v=4
og:image:altRoot cause: When AssemblyScript compiles a template literal for string concatenation, the compiler generates a static StaticArray<string> as an intermediate buffer. This static array resides ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git
octolytics-dimension-user_id28916798
octolytics-dimension-user_loginAssemblyScript
octolytics-dimension-repository_id105138356
octolytics-dimension-repository_nwoAssemblyScript/assemblyscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id105138356
octolytics-dimension-repository_network_root_nwoAssemblyScript/assemblyscript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/AssemblyScript/assemblyscript/pull/3039/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fpull%2F3039%2Ffiles
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%2FAssemblyScript%2Fassemblyscript%2Fpull%2F3039%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=AssemblyScript%2Fassemblyscript
Reloadhttps://github.com/AssemblyScript/assemblyscript/pull/3039/files
Reloadhttps://github.com/AssemblyScript/assemblyscript/pull/3039/files
Reloadhttps://github.com/AssemblyScript/assemblyscript/pull/3039/files
AssemblyScripthttps://github.com/AssemblyScript
assemblyscripthttps://github.com/AssemblyScript/assemblyscript
Codehttps://github.com/AssemblyScript/assemblyscript
Issues196 (196)https://github.com/AssemblyScript/assemblyscript/issues
Pull requests24 (24)https://github.com/AssemblyScript/assemblyscript/pulls
Actionshttps://github.com/AssemblyScript/assemblyscript/actions
Wikihttps://github.com/AssemblyScript/assemblyscript/wiki
Security and qualityhttps://github.com/AssemblyScript/assemblyscript/security
Insightshttps://github.com/AssemblyScript/assemblyscript/insights
Sign up for GitHub https://github.com/signup?return_to=%2FAssemblyScript%2Fassemblyscript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FAssemblyScript%2Fassemblyscript%2Fissues%2Fnew%2Fchoose
KKiiimhttps://github.com/KKiiim
AssemblyScript:mainhttps://github.com/AssemblyScript/assemblyscript/tree/main
KKiiim:fix/static-arrayhttps://github.com/KKiiim/assemblyscript/tree/fix/static-array
Conversation 1 https://github.com/AssemblyScript/assemblyscript/pull/3039
Commits 1 https://github.com/AssemblyScript/assemblyscript/pull/3039/commits
Checks 0 https://github.com/AssemblyScript/assemblyscript/pull/3039/checks
Files changed https://github.com/AssemblyScript/assemblyscript/pull/3039/files
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/3039/files
fix: template literal OOM error caused by child elements not visible to GC in staticArray https://github.com/AssemblyScript/assemblyscript/pull/3039/files#top
Show all changes 1 commit https://github.com/AssemblyScript/assemblyscript/pull/3039/files
bb2f294 fix KKiiim Aug 20, 2026 https://github.com/AssemblyScript/assemblyscript/pull/3039/commits/bb2f294f17af2044dc939ecf0abddd9ab6e73308
Clear filters https://github.com/AssemblyScript/assemblyscript/pull/3039/files
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/3039/files
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/3039/files
compiler.ts https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee
date.debug.wat https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-df9ac5724d1c7730e58c745b4e252d43e4d88fc972bfcefacd3c1deb9788b321
date.release.wat https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-07e9a3a4baaa04cff43d8a604ab6b6ce8ba12ee50d73bffa59fc80a5f6c38667
templateliteral-high-pressure.debug.wat https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-1bcf76fa43e620ad184052c000b5b3d3d97a0aee88f06c0c6620be37afd38871
templateliteral-high-pressure.json https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-3762d079453a2abf50b6a93308e126c203a424bfbf9844219dcc4440508c6c8a
templateliteral-high-pressure.release.wat https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-72c7b97140d9e7b1ad60287ec8ebd7392b0caa2927e36c8003cdc3bed6db9aef
templateliteral-high-pressure.ts https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-894664648a4eeb1b00dfd807efd68be0e8bedc82523c73d6615e9a394e538561
templateliteral.debug.wat https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-96559ca5ce40b02878a36ccb0022ac84754875474d58e16b191393ad44b8bb28
templateliteral.release.wat https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-1e1261d8220bab3ff83787df3a8f890dc68661dec21e722ee27671e1d546f693
src/compiler.tshttps://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee
View file https://github.com/AssemblyScript/assemblyscript/blob/bb2f294f17af2044dc939ecf0abddd9ab6e73308/src/compiler.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/AssemblyScript/assemblyscript/pull/3039/{{ revealButtonHref }}
https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee
https://github.com/AssemblyScript/assemblyscript/pull/3039/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/3039/files
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.