Stream: git-wasmtime

Topic: wasmtime / PR #3510 InstancePre can impl Clone


view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2021 at 00:09):

pchickey opened PR #3510 from pch/instance_pre_clone to main:

The clone should be reasonably inexpensive: Clone for Module is just an
Arc, and Clone for Definition should also just be an Arc on the HostFunc
or Instance variants. An InstancePre shouldnt contain any
Definition::Extern variants because there is not yet a Store associated
with it- right?

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2021 at 00:15):

pchickey updated PR #3510 from pch/instance_pre_clone to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2021 at 00:16):

pchickey edited PR #3510 from pch/instance_pre_clone to main:

Its a manually written impl, not a derive, because InstancePre<T>: Clone
is not bound by T: Clone.

The clone should be reasonably inexpensive: Clone for Module is just an
Arc, and Clone for Definition should also just be an Arc on the HostFunc
or Instance variants. An InstancePre shouldnt contain any
Definition::Extern variants because there is not yet a Store associated
with it- right?

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2021 at 00:16):

pchickey requested alexcrichton for a review on PR #3510.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2021 at 15:11):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2021 at 15:11):

alexcrichton merged PR #3510.


Last updated: Nov 22 2024 at 16:03 UTC