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

Fix dropping cached stack with Store::into_data #10009

Merged

Conversation

alexcrichton
Copy link
Member

@alexcrichton alexcrichton commented Jan 14, 2025

This commit fixes a regression from #9604 where using Store::into_data wouldn't properly drop a cached stack in a store like a Drop destructor. The fix here is to add the flush_fiber_stack method into the into_data here as well.

Closes #10007

This commit fixes a regression from bytecodealliance#9604 where using `Store::into_data`
wouldn't properly drop a cached stack in a store like a `Drop`
destructor. The fix here is to add the `flush_fiber_stack` method into
the `into_data` here as well.
@alexcrichton alexcrichton requested a review from a team as a code owner January 14, 2025 16:34
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team January 14, 2025 16:34
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Jan 14, 2025
@alexcrichton alexcrichton added this pull request to the merge queue Jan 14, 2025
Merged via the queue into bytecodealliance:main with commit be40551 Jan 14, 2025
39 checks passed
@alexcrichton alexcrichton deleted the flush-on-into-inner branch January 14, 2025 19:37
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Jan 14, 2025
…0009)

This commit fixes a regression from bytecodealliance#9604 where using `Store::into_data`
wouldn't properly drop a cached stack in a store like a `Drop`
destructor. The fix here is to add the `flush_fiber_stack` method into
the `into_data` here as well.
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Jan 14, 2025
…0009)

This commit fixes a regression from bytecodealliance#9604 where using `Store::into_data`
wouldn't properly drop a cached stack in a store like a `Drop`
destructor. The fix here is to add the `flush_fiber_stack` method into
the `into_data` here as well.
alexcrichton added a commit that referenced this pull request Jan 14, 2025
This commit fixes a regression from #9604 where using `Store::into_data`
wouldn't properly drop a cached stack in a store like a `Drop`
destructor. The fix here is to add the `flush_fiber_stack` method into
the `into_data` here as well.
alexcrichton added a commit that referenced this pull request Jan 14, 2025
This commit fixes a regression from #9604 where using `Store::into_data`
wouldn't properly drop a cached stack in a store like a `Drop`
destructor. The fix here is to add the `flush_fiber_stack` method into
the `into_data` here as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:api Related to the API of the `wasmtime` crate itself
Projects
None yet
2 participants