Skip to content

LLVM uses too much memory when compiling an emscripten test with stackmaps enabled #717

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
losfair opened this issue Aug 23, 2019 · 1 comment
Labels
bug Something isn't working 📦 lib-compiler-llvm About wasmer-compiler-llvm

Comments

@losfair
Copy link
Contributor

losfair commented Aug 23, 2019

Describe the bug

When running the emscripten test test_indirectbr_many, memory usage goes up by >10GB and testing is not able to complete both on CI and on my computer.

Steps to reproduce

  1. Remove the ignore attribute on fn test_test_indirectbr_many.
  2. Run: cargo test --manifest-path lib/emscripten-tests/Cargo.toml --release --features llvm -- --test-threads=1 .
  3. Watch the memory usage.

Expected behavior

Test successfully finishes.

Actual behavior

Memory usage keeps increasing until crash.

@losfair losfair added the bug Something isn't working label Aug 23, 2019
@Hywan Hywan added the 📦 lib-compiler-llvm About wasmer-compiler-llvm label Jul 14, 2021
@Hywan
Copy link
Contributor

Hywan commented Jul 15, 2021

Solved with the rewrite.

@Hywan Hywan closed this as completed Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 📦 lib-compiler-llvm About wasmer-compiler-llvm
Projects
None yet
Development

No branches or pull requests

2 participants