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

Close intermediate streams for reads/writes #7816

Merged

Conversation

alexcrichton
Copy link
Member

Previously temporary streams created as part of the preview1 adapter in the wasmtime-wasi crate were left open which meant that they continued to occupy space in the resource table and the underlying file accidentally wasn't ever actually closed.

cc #7813

Previously temporary streams created as part of the preview1 adapter in
the wasmtime-wasi crate were left open which meant that they continued
to occupy space in the resource table and the underlying file
accidentally wasn't ever actually closed.

cc bytecodealliance#7813
@alexcrichton alexcrichton requested a review from a team as a code owner January 24, 2024 23:09
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team January 24, 2024 23:09
Copy link
Contributor

@pchickey pchickey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find! Glad this was easy to fix

@alexcrichton alexcrichton added this pull request to the merge queue Jan 24, 2024
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Jan 24, 2024
This commit takes a stab at bytecodealliance#7816 without diving a whole lot into it. I
noticed that the loop started with `vcvtss2sd` which is along the same
lines as previous false dependencies found earlier in PRs such as bytecodealliance#7098.
I had forgotten these instructions at the time and meant to go back and
touch them up and bytecodealliance#7731 has provided sufficient motivation to do so!

Locally this takes that test case from 1.6s to 0.4s for me.
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Jan 25, 2024
Previously temporary streams created as part of the preview1 adapter in
the wasmtime-wasi crate were left open which meant that they continued
to occupy space in the resource table and the underlying file
accidentally wasn't ever actually closed.

cc bytecodealliance#7813
Merged via the queue into bytecodealliance:main with commit e7064d4 Jan 25, 2024
18 checks passed
@alexcrichton alexcrichton deleted the close-intermediate-streams branch January 25, 2024 00:18
alexcrichton added a commit that referenced this pull request Jan 25, 2024
Previously temporary streams created as part of the preview1 adapter in
the wasmtime-wasi crate were left open which meant that they continued
to occupy space in the resource table and the underlying file
accidentally wasn't ever actually closed.

cc #7813
github-merge-queue bot pushed a commit that referenced this pull request Jan 26, 2024
* Break more data dependencies in float-related instructions

This commit takes a stab at #7816 without diving a whole lot into it. I
noticed that the loop started with `vcvtss2sd` which is along the same
lines as previous false dependencies found earlier in PRs such as #7098.
I had forgotten these instructions at the time and meant to go back and
touch them up and #7731 has provided sufficient motivation to do so!

Locally this takes that test case from 1.6s to 0.4s for me.

* Fix inst emit tests

* Update winch codegen
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.

2 participants