Skip to content

runtime/debug: don't STW GC on SetGCPercent #19076

Closed
@aclements

Description

@aclements

As of Go 1.8, runtime/debug.SetGCPercent forces a full STW GC. This is an impediment to responding to memory pressure/overload.

Assuming we're not already over the new GOGC value, it should instead adjust the GC pacing parameters without necessarily triggering a GC. This is complicated by the fact that we may be mid-sweep or mid-mark, so we have to account for current progress.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions