Skip to content

API to force garbage collection of red herring retainers like feedback_cells etc #62659

@jedwards1211

Description

@jedwards1211

What is the problem this feature will solve?

I know it's not really Node's fault, but debugging memory leaks in Node has become a really shitty dev experience due to noise from things getting temporarily retained by feedback_cells, AllocationSites, etc.

I'm trying to debug memory leaks that started happening after I upgraded to Node 24 and this is making me miserable.

What is the feature you are proposing to solve the problem?

Some kind of option we can pass to global.gc() to force more intensive garbage collection.

If v8 doesn't provide an API for this, please start bugging them to provide one. I'd be happy to file an issue with them if y'all are willing to add your support to it - y'all have enough clout to make a difference here.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions