-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Milestone
Description
Reproduction:
- use nightly rustc (with wasm target installed)
- clone https://github.com/ruffle-rs/ruffle
cd web
cargo build --release --verbose -j1 --target=wasm32-unknown-unknown
Result: under a minute into the build, the compiler hangs when compiling the json
dependency, taking increasingly more memory; after 40s it spiked to 1GB, then 2GB and more. The json
crate is tiny with no dependencies of its own, normally it should take <5s to build.
Weirdly, I cannot reproduce it when building the json
crate's repo on its own, but I may be missing some build configuration difference.
Reproduced on builds starting with nightly-2021-09-26
(rustc 1.57.0-nightly (addb4da68 2021-09-25)
), it works fine on earlier build. Also someone else managed to reproduce this on latest nightly too.
Herschel, torokati44 and Toad06
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.