Skip to content

Rustc does not free memory before calling the linker #66643

Description

@cjgillot

Hello,

While compiling rust-analyzer, I witnessed elevated memory usage by rustc while the linker is active. In that case, more that 600 MB is allocated by the compiler. In cargo-parallelized build, this is a lot.

rustc version: 1.40.0-nightly (5da4b4d47 2019-10-28)

Thank you for investigating this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.I-compilememIssue: Problems and improvements with respect to memory usage during compilation.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