Skip to content

Rustc does not free memory before calling the linker #66643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cjgillot opened this issue Nov 22, 2019 · 1 comment
Closed

Rustc does not free memory before calling the linker #66643

cjgillot opened this issue Nov 22, 2019 · 1 comment
Labels
A-codegen Area: Code generation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@cjgillot
Copy link
Contributor

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.

@jonas-schievink jonas-schievink added A-codegen Area: Code generation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 22, 2019
@matprec
Copy link
Contributor

matprec commented Feb 11, 2020

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
Labels
A-codegen Area: Code generation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants