fitzgen opened PR #12536 from fitzgen:string-pool to bytecodealliance:main:
And make sure it handles allocation failure.
Depends on https://github.com/bytecodealliance/wasmtime/pull/12534 and https://github.com/bytecodealliance/wasmtime/pull/12535
fitzgen requested alexcrichton for a review on PR #12536.
fitzgen requested wasmtime-fuzz-reviewers for a review on PR #12536.
fitzgen requested wasmtime-core-reviewers for a review on PR #12536.
fitzgen requested wasmtime-default-reviewers for a review on PR #12536.
fitzgen updated PR #12536.
fitzgen updated PR #12536.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Perhaps
Box<str>instead ofStringto further emphasize the lack of reallocation + mutation?
alexcrichton created PR review comment:
This can be just
Resultinstead ofcore::result::ResultI think?
alexcrichton created PR review comment:
Given the self-borrowing nature here, this I think would be a good use case for
ManuallyDropand the destructor documents-via-code thatstringsis destroyed aftermap
github-actions[bot] added the label fuzzing on PR #12536.
github-actions[bot] added the label wasmtime:api on PR #12536.
github-actions[bot] commented on PR #12536:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "fuzzing", "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- fitzgen: fuzzing
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen updated PR #12536.
fitzgen has enabled auto merge for PR #12536.
fitzgen updated PR #12536.
fitzgen added PR #12536 Add a reusable StringPool for interning strings to the merge queue.
fitzgen merged PR #12536.
fitzgen removed PR #12536 Add a reusable StringPool for interning strings from the merge queue.
Last updated: Feb 24 2026 at 04:36 UTC