fitzgen opened PR #9476 from fitzgen:minor-gc-codegen-improvements
to bytecodealliance:main
:
- Don't bounds-check GC refs that are returned from trusted libcalls
- Mark loading the DRC collector's activations table pointer from the
vmctx
asreadonly
Also a minor refactor to emitting code to get the GC heap base and bound that resulted in a mechanical value renumbering in the GC disas tests. See each commit in isolation for better diffs.
fitzgen requested alexcrichton for a review on PR #9476.
fitzgen requested wasmtime-core-reviewers for a review on PR #9476.
fitzgen updated PR #9476.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Is the
with_readonly
here going to be accurate in the future? If I understand this right it's akin tomemory.size
which is readonly ifmemory.grow
can't be used, but if we support for example more dynamic configurations of GC heaps in the future will this still be true?
alexcrichton created PR review comment:
Similar to below, is this
with_readonly
going to be true in the face of a dynamic GC heap that can move in the future?
github-actions[bot] commented on PR #9476:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "wasmtime:ref-types"Thus the following users have been cc'd because of the following labels:
- fitzgen: wasmtime:ref-types
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen submitted PR review.
fitzgen created PR review comment:
This code will all be refactored quite a bit for when we support backing GC heaps with linear memories and the static vs dynamic knobs and all that. This is really just for in the meantime, and to split out from some other stuff I am working on.
fitzgen merged PR #9476.
Last updated: Dec 23 2024 at 13:07 UTC