Skip to content

🐛 fix(vm): memory leak in _stackFrameFreeList#237

Open
SimonShiki wants to merge 2 commits into
feat/ts-vm-2from
fix/memory-leak-in-stack-frame
Open

🐛 fix(vm): memory leak in _stackFrameFreeList#237
SimonShiki wants to merge 2 commits into
feat/ts-vm-2from
fix/memory-leak-in-stack-frame

Conversation

@SimonShiki
Copy link
Copy Markdown
Member

@SimonShiki SimonShiki commented May 25, 2026

Requires #236

Description

Fix memory leak in _stackFrameFreeList, that holds target and not clear even the target get disposed.

Proposed Changes

  1. Make _StackFrame holds a weak ref for the target
  2. Clear _stackFrameFreeList when target disposed or runtime disposed.

Test Coverage

None

Additional Context

None

Signed-off-by: SimonShiki <sinangentoo@gmail.com>
@SimonShiki SimonShiki changed the base branch from dev/3.2 to feat/ts-vm-2 May 25, 2026 03:45
Signed-off-by: SimonShiki <sinangentoo@gmail.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 25, 2026

Deploying clipcc-preview with  Cloudflare Pages  Cloudflare Pages

Latest commit: 97efb39
Status: ✅  Deploy successful!
Preview URL: https://7b0c2066.clipcc-preview.pages.dev
Branch Preview URL: https://fix-memory-leak-in-stack-fra.clipcc-preview.pages.dev

View logs

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant