Skip to content

Implicit jobserver token is yielded by rayon #67385

@Mark-Simulacrum

Description

@Mark-Simulacrum

Rayon is currently yielding the implicit token "owned" by the process which means we can end up in a situation where e.g. a -j1 build has more than 1 rustc running (even though only one of them is actively running, but they're all consuming memory and other resources, so this is a bug).

The current intended fix is to stop yielding the implicit token by keeping track of the amount of tokens we've acquired/yielded and just skipping the yield (and eventual reacquire) for that implicit token.

cc #64750

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parallel-compilerArea: parallel compilerC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions