fitzgen opened PR #7986 from fitzgen:slab
to bytecodealliance:main
:
First of all, it is just a nice separation of concerns.
Second of all, as I design the GC rooting APIs for Wasmtime's upcoming Wasm GC support, I want this same thing and I'd rather not open code it multiple times.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
fitzgen requested alexcrichton for a review on PR #7986.
fitzgen requested wasmtime-core-reviewers for a review on PR #7986.
fitzgen requested wasmtime-default-reviewers for a review on PR #7986.
elliottt submitted PR review:
This seems good to me! We could probably use this for the wasi table in wasmtime-wasi as well, as it looks pretty similar in its implementation :)
elliottt submitted PR review:
This seems good to me! We could probably use this for the wasi table in wasmtime-wasi as well, as it looks pretty similar in its implementation :)
elliottt created PR review comment:
Does this use
NonZeroU32
to ensure thatOption<Id>
takes up four bytes?
elliottt submitted PR review:
This seems good to me! We could probably use this for the
ResourceTable
as well, as it looks pretty similar in its implementation :)
fitzgen submitted PR review.
fitzgen created PR review comment:
Yep, and this also aligns with how
VMSharedTypeIndex
reservesu32::MAX
for its default/null value.
fitzgen commented on PR #7986:
We could probably use this for the
ResourceTable
as well, as it looks pretty similar in its implementation :)I believe Alex added a generation to that table, so it would need to do the layering described in the docs. Might make sense to add a generic implementation of that layering to this crate if we make
ResourceTable
use this as an implementation detail.
github-actions[bot] commented on PR #7986:
Subscribe to Label Action
cc @peterhuene
<details>
This issue or pull request has been labeled: "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- peterhuene: wasmtime:api
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen merged PR #7986.
Last updated: Dec 23 2024 at 13:07 UTC