Stream: git-wasmtime

Topic: wasmtime / PR #6075 wasmtime: Make `StoreContextMut` acce...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 15:28):

saulecabrera opened PR #6075 from store-in-epoch-callback to main:

This commit changes the signature of the Store::epoch_deadline_callback to
take in StoreContextMut instead of a mutable reference to the store's data.

This is useful in cases in which the callback definition needs access to the
Store to be able to use other methods that take in AsContext/AsContextMut,
like for example WasmtimeBacktrace::capture

I decided to only pass in StoreContextMut as the data is accessible through it
via dataand data_mut, but also happy to have them both if there are specific
reasons to do so.

<!--

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.
-->

<!--

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 (Mar 21 2023 at 15:28):

saulecabrera requested alexcrichton for a review on PR #6075.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 15:53):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 15:53):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 21 2023 at 15:53):

alexcrichton created PR review comment:

Could the .borrow_mut() be dropped here?

(I'm not actually sure even where this method comes from!)

view this post on Zulip Wasmtime GitHub notifications bot (Mar 23 2023 at 14:23):

saulecabrera updated PR #6075 from store-in-epoch-callback to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 23 2023 at 14:38):

alexcrichton has enabled auto merge for PR #6075.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 23 2023 at 14:50):

saulecabrera submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 23 2023 at 14:50):

saulecabrera created PR review comment:

Yeah, I was able to make this work by switching to (&mut *self).

view this post on Zulip Wasmtime GitHub notifications bot (Mar 23 2023 at 15:12):

alexcrichton merged PR #6075.


Last updated: Nov 22 2024 at 16:03 UTC