Visitar URL original
[Bug]: objects captured by closeBundle remain retained after bundle release and repeated GC · Issue #11444 · rolldown/rolldown · GitHub
Skip to content

[Bug]: objects captured by closeBundle remain retained after bundle release and repeated GC #11444

Open

Description

@sapphi-red

Reproduction link or steps

https://github.com/sapphi-red-repros/rolldown-plugin-callback-memory-retention

What is expected?

Objects referenced in closeBundle hook is collected by GC once nothing is referencing the bundle or plugins.

What is actually happening?

The objects referenced in closeBundle hook is kept after GC ran multiple times after nothing is referencing them.

System Info

System:
    OS: macOS 27.0.1
    CPU: (12) arm64 Apple M4 Pro
    Memory: 1.08 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 26.13.0 - /Users/user/.local/share/vite-plus/js_runtime/node/26.13.0/bin/node
    Yarn: 4.18.1 - /Users/user/.local/share/vite-plus/bin/yarn
    npm: 11.20.0 - /Users/user/.local/share/vite-plus/js_runtime/node/26.13.0/bin/npm
    pnpm: 12.15.0 - /Users/user/.local/share/vite-plus/bin/pnpm
    bun: 1.4.4 - /Users/user/.local/share/vite-plus/bin/bun
    Deno: 2.9.7 - /Users/user/.deno/bin/deno
  Browsers:
    Safari: 27.0.1
  npmPackages:
    rolldown: 1.2.16 => 1.2.16

Any additional comments?

Probably related to #10887.
Originally reported at vitejs/vite#23968

Activity

  1. added theissue type on Nov 2, 2026
  2. added 4 commits that reference this issue on Nov 9, 2026
    fba15ca
    1b0e85d
    86ad2b7
    a9c5074
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Fields

Priority

None yet

Effort

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions