Skip to content
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

dlmalloc is larger on wasip1 target than unknown-unknown #45

Closed
XinyuZeng opened this issue Dec 21, 2024 · 1 comment
Closed

dlmalloc is larger on wasip1 target than unknown-unknown #45

XinyuZeng opened this issue Dec 21, 2024 · 1 comment

Comments

@XinyuZeng
Copy link

Hi, I am just curious about the reason behind this behavior: https://users.rust-lang.org/t/code-size-of-wasip1-larger-than-unknown-unknown/122789

For wasi, is that we should include our own allocator?

@alexcrichton
Copy link
Owner

I believe what's happening there is that the Rust wasm32-wasip1 target is using wasi-libc by default for malloc, not this crate. You can still use this crate though with #[global_allocator] instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants