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

Remove WASM_BINDGEN_THREADS_MAX_MEMORY and WASM_BINDGEN_THREADS_STACK_SIZE #4363

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

daxpedda
Copy link
Collaborator

Currently, when compiling with atomics, the maximum memory size can be set via WASM_BINDGEN_THREADS_MAX_MEMORY and the stack size of a thread can be set via WASM_BINDGEN_THREADS_STACK_SIZE.

Both are not needed anymore. The maximum memory size can be set via -Clink-arg=--max-memory=<size>. The stack size of a thread can be set when initializing the thread via the default function, which was introduced in #3995.

Additionally, I removed the WASM_BINDGEN_THREADS, which would not actually set the memory to shared, making it just set a maximum memory size without any real useful other effect.

@daxpedda daxpedda merged commit dfb9d92 into rustwasm:main Dec 17, 2024
67 checks passed
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

Successfully merging this pull request may close these issues.

1 participant