javascriptcore-garbage-collector
A contributor reference in the Bun repository on how JavaScriptCore's garbage collector works inside Bun, for debugging use-after-free bugs, leaks and objects freed too early, or for writing native code that touches the collector.
What the skill teaches
A contributor reference in the Bun repository on how JavaScriptCore's garbage collector works inside Bun, for debugging use-after-free bugs, leaks and objects freed too early, or for writing native code that touches the collector. It covers how roots are found, including conservative stack scanning and its limits, the cell header and write barriers, allocation in isolated subspaces, the rules for tracing hooks that run concurrently, opaque roots, weak references and finalisers, Bun's pattern of holding a strong reference only while work is active, reporting extra native memory, and heap snapshots. A table helps pick the right way to keep an object alive, and environment variables for stress-testing the collector are listed.
Capabilities
- Diagnose use-after-free and premature collection bugs
- Choose a keep-alive mechanism for native objects
- Write tracing hooks and write barriers safely
- Stress the collector with debug environment variables
About
- Publisher
- Oven (Bun)
- Tool
- Debugging
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Debugging | |
| Publisher | Oven (Bun) | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 202696,758 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from Oven (Bun)
6 skills
- slowest-tests (Skill)
- verify (Skill)
- implementing-jsc-classes-cpp (Skill)
- implementing-jsc-classes-rust (Skill)
- rust-system-calls (Skill)
Also listed under: Debugging
Sources
- Skill file (SKILL.md)github.com/oven-sh/bun · Backs: Includes scripts, LicenceNov 10, 2026
- GitHub repositorygithub.com/oven-sh/bun · Backs: Publisher, ActivityNov 11, 2026
- Folder in the repository (javascriptcore-garbage-collector)github.com/oven-sh/bun · Backs: Includes scriptsNov 10, 2026