MolotovCherry requested wasmtime-compiler-reviewers for a review on PR #8718.
MolotovCherry requested elliottt for a review on PR #8718.
MolotovCherry opened PR #8718 from MolotovCherry:main
to bytecodealliance:main
:
JITModule
currently is!Send
, which makes it less useful. According to bjorn, it makes sense to make itSend
.I'm fairly new to this, but please let me know any issues/concerns you have and I'll do my best to address them. Thanks!
cc @bjorn3
MolotovCherry edited PR #8718:
JITModule
currently is!Send
, which makes it less useful. According to bjorn, it makes sense to make itSend
.I'm fairly new to this, but please let me know any issues/concerns you have with this and I'll do my best to address them. Thanks!
cc @bjorn3
MolotovCherry submitted PR review.
MolotovCherry created PR review comment:
Seeing that
libcall_names
already originally requiredSend + Sync
inJITBuilder
, I wonder if it would be better to also addSync
to this.
MolotovCherry edited PR review comment.
MolotovCherry edited PR review comment.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Instead of implementing
Send
onJITModule
, which may cause issues if we add a new non-Send
field, maybe it would be possible to implementSend
on each type that doesn't currently likeCompiledBlob
andPtrLen
. For thesymbols
field you can for example wrap the*const u8
in a newtype.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
I don't think there is much point in making it
Sync
too asJITModule
can't beSync
anyway. Forlibcall_names
it makes sense for it to beSync
to be able to passcranelift_module::default_libcall_names()
.
MolotovCherry updated PR #8718.
MolotovCherry submitted PR review.
MolotovCherry created PR review comment:
Should be mostly good now I think. I made a
SendWrapper
for fields which can be wrapped in it inJITModule
, and impl'dSend
on any types that didn't likeCompiledBlob
andPtrLen
. I also had to wrap all theNonNull
fields as they were also offenders
MolotovCherry edited PR review comment.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Deriving Copy and Clone should be fine.
MolotovCherry updated PR #8718.
alexcrichton submitted PR review.
alexcrichton merged PR #8718.
Last updated: Dec 23 2024 at 12:05 UTC