Skip to content

Rustc does not free memory before calling the linker #66643

Closed

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

  1. added
    A-codegenArea: Code generation
    A-linkageArea: linking into static, shared libraries and binaries
    C-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.
    on Nov 22, 2019
  2. matprec commented on Feb 11, 2020

    @matprec
    Contributor

    I think this can closed now that #66707 is merged.

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