Skip to content

Implement TryClone for GcLayout#12616

Merged
fitzgen merged 1 commit intobytecodealliance:mainfrom
fitzgen:try-clone-gc-layout
Feb 19, 2026
Merged

Implement TryClone for GcLayout#12616
fitzgen merged 1 commit intobytecodealliance:mainfrom
fitzgen:try-clone-gc-layout

Conversation

@fitzgen
Copy link
Member

@fitzgen fitzgen commented Feb 18, 2026

Depends on #12615

And also make it so that cloning it doesn't actually require any allocations by
wrapping the inner GcStructLayout in an Arc.

@github-actions github-actions bot added wasmtime:api Related to the API of the `wasmtime` crate itself wasmtime:ref-types Issues related to reference types and GC in Wasmtime labels Feb 18, 2026
@github-actions
Copy link

Subscribe to Label Action

cc @fitzgen

Details This issue or pull request has been labeled: "wasmtime:api", "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 .github/subscribe-to-label.json configuration file.

Learn more.

And also make it so that cloning it doesn't actually require any allocations by
wrapping the inner `GcStructLayout` in an `Arc`.
@fitzgen fitzgen force-pushed the try-clone-gc-layout branch from eab32e6 to c692dc5 Compare February 19, 2026 16:10
@fitzgen fitzgen enabled auto-merge February 19, 2026 16:10
@fitzgen fitzgen added this pull request to the merge queue Feb 19, 2026
Merged via the queue into bytecodealliance:main with commit 735bc9c Feb 19, 2026
45 checks passed
@fitzgen fitzgen deleted the try-clone-gc-layout branch February 19, 2026 16:46
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 wasmtime:ref-types Issues related to reference types and GC in Wasmtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments