-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[refactor] Introduce WasmEdge_FunctionInstanceGetData
to drop host data
#84
Conversation
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR. Overall summary: The overall summary of the pull request titled "[refactor] Introduce The pull request introduces changes related to the dropping of host data in the There are several potential issues and errors identified in the pull request. These include potential problems with memory management, dangling references, and possible double free errors. It is important to carefully review the changes and ensure that they are correct and do not introduce any unexpected behavior. In terms of important findings, the addition of the Overall, the changes in this pull request require thorough review and testing to ensure they align with the intended functionality and do not introduce any problems or errors. DetailsCommit dc114658897f4879a3b314283e7d2a87788eacfdKey changes:
Potential problems:
Other observations:
Commit ac89b2a574b42c16d9d2907ae369ba0188cf2cceThe key changes in this pull request are as follows:
Potential problems:
Overall, the changes in this pull request introduce potential problems related to memory management and dangling references. Commit 150b0bbe62c9147c50db494203927a5a2887f873Key changes in this patch include:
Potential problems:
Overall, it seems like the changes in this patch are relatively minor. However, it's important to review the modified code and the reasons behind the changes to ensure they are correct and don't introduce any problems. Commit 68a8abdaf3e020f8bd9f34973bdbdf5cf757c166Key changes:
Potential problems:
Commit 1078cdbcf57cc74a7352a43a63a9521a0da79c3aKey changes in this patch:
Potential problems:
Overall, the patch brings in a new function to handle dropping host data and updates the Commit 56f3e286bd9b5cd709aa49415cfd93da50592895Key Changes:
Potential Problems:
Commit c41e2abb33c0076434c44b39aefb843bb12d81cfKey changes:
Potential problems:
Commit f503c4d306598a18f4cd7b619bbbe8bf110c2b9bKey changes:
Potential problems:
Overall, this patch appears to be a straightforward version update for the rust-sdk. Commit 59395caae5f37579f651dc87be111bc433fd8972Key Changes:
Potential Problems:
Commit f240c8f0de31bf6ecc1917258ec86898cc5d984fThe key change in this patch is the update of the Rust version used in the CI build. The list of supported Rust versions has been updated to include 1.73, 1.72, and 1.71, and the previous version 1.70.0 has been removed. Potential problems:
Overall, the patch seems to be a routine update to the CI build configuration. It would be helpful if the patch description provided more details about the motivation behind the update and any potential risks or considerations. Additionally, it's important to verify that the updated Rust versions are compatible with the codebase and don't introduce any new issues. Commit 8b711ede19415ec73318a085f6695dfd3d5f034fKey changes:
Potential problems:
Overall, the change seems straightforward, but more information and context are needed to fully understand the reasons behind the update and to assess any potential problems. Commit 0a2153c544894ea11070660b560118759d301b92Summary of changes:
Potential problems:
Commit 73c88dbfcc4e3bbcc49be69de4c3daf71b21ec0eKey changes:
Potential problems:
Commit 60d5003883eef42ce3fee9a4aadb4ba78db0832dKey changes:
Potential problems:
Overall, the patch seems to be a straightforward update of dependency versions. However, further information and testing details would be beneficial to ensure the changes are properly integrated. Commit dcb751f923618fde6c342a37219255f721788b61Key Changes:
Potential Problems:
|
@hydai Could you please help review this PR? Thanks a lot! |
@hydai Thanks for the review! |
* [Refactor] Add #[form] for subtypes of WasmEdgeError. Signed-off-by: csh <458761603@qq.com> * [Refactor] fix memory leak Signed-off-by: csh <458761603@qq.com> * [Fix] Avoid the CPU 100% by tokio-wasi. Signed-off-by: csh <458761603@qq.com> * [Fix] Fix blocking during tokio-wasi TCP connect. Signed-off-by: csh <458761603@qq.com> * [Fix] async-wasi get envs & args Signed-off-by: csh <458761603@qq.com> * [Perf] Optimize the wasi-ctx Signed-off-by: csh <458761603@qq.com> * [Chore] Temporarily disable the serialize feature. Signed-off-by: csh <458761603@qq.com> * [feat] virtual file system Signed-off-by: csh <458761603@qq.com> * [Refactor] update the argument type of `run_func_with_timeout` and `run_func_async_with_timeout` (#76) * [Feat] run func timeout use std::time::Duration Signed-off-by: csh <458761603@qq.com> * [Doc]: update api docs Signed-off-by: csh <458761603@qq.com> --------- Signed-off-by: csh <458761603@qq.com> (cherry picked from commit 07e84b7) Signed-off-by: csh <458761603@qq.com> * [Refactor] delete useless code from validator Signed-off-by: csh <458761603@qq.com> * [Refactor] To pass the clippy Signed-off-by: csh <458761603@qq.com> * Disable timeout in musl libc (#71) Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com> Signed-off-by: csh <458761603@qq.com> * Disable timeout in musl libc Signed-off-by: csh <458761603@qq.com> * [Doc] update doc Signed-off-by: csh <458761603@qq.com> * [Fix] fix ffi::WasmEdge_String to String Signed-off-by: csh <458761603@qq.com> * [Fix] Fix unit test Signed-off-by: csh <458761603@qq.com> * [Fix] Modify the `WasiModule`. Signed-off-by: csh <458761603@qq.com> * [refactor] Introduce `WasmEdge_FunctionInstanceGetData` to drop host data (#84) * feat(rust-sys): drop host_data in `Function::drop` Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update `drop` of `ImportModule` and `Function` Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sdk): update test code Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update `drop` of `ImportModule` and `Function` Signed-off-by: Xin Liu <sam@secondstate.io> * refactor(rust-sys): update `ImportModule::drop` Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): remove debug code Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sdk): remove debug code Signed-off-by: Xin Liu <sam@secondstate.io> * version(rust-sdk): bump to `0.13.0` Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): supress clippy warning Signed-off-by: Xin Liu <sam@secondstate.io> * ci(ci-build): update rust version Signed-off-by: Xin Liu <sam@secondstate.io> * ci(standalone): update rust version Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update rustdoc Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sdk): update rustdoc and `README` Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update dependencies Signed-off-by: Xin Liu <sam@secondstate.io> * ci: update to `macos-13` Signed-off-by: Xin Liu <sam@secondstate.io> --------- Signed-off-by: Xin Liu <sam@secondstate.io> * doc: update `CHANGELOG` (#85) Signed-off-by: Xin Liu <sam@secondstate.io> * [Chore] Update build script (#86) * chore(rust-sys): update build script Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update build script Signed-off-by: Xin Liu <sam@secondstate.io> --------- Signed-off-by: Xin Liu <sam@secondstate.io> * [Fix] Fix sys test Signed-off-by: csh <458761603@qq.com> * Relax the version of `wat` dep (#90) * chore(rust-sdk): update `wat` dep Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sdk): update test code Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update test code Signed-off-by: Xin Liu <sam@secondstate.io> * version(rust-sys): bump to `0.17.4` Signed-off-by: Xin Liu <sam@secondstate.io> * version(rust-sdk): bump to `0.13.1` Signed-off-by: Xin Liu <sam@secondstate.io> * doc: update `CHANGELOG` Signed-off-by: Xin Liu <sam@secondstate.io> --------- Signed-off-by: Xin Liu <sam@secondstate.io> * [CI] skip test_vmbuilder on fedora Signed-off-by: csh <458761603@qq.com> * Fix static build to link agains zstd (#91) Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com> * Update doc for releasing `v0.13.2` (#93) * ci: update workflows Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update versioning table Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sdk): update versioning table Signed-off-by: Xin Liu <sam@secondstate.io> * ci(rust-static-lib): fix typo Signed-off-by: Xin Liu <sam@secondstate.io> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update rustdoc Signed-off-by: Xin Liu <sam@secondstate.io> * version(rust-sdk): bump to `0.13.2` Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sdk): update versioning table Signed-off-by: Xin Liu <sam@secondstate.io> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <sam@secondstate.io> --------- Signed-off-by: Xin Liu <sam@secondstate.io> * [Version] Bump `wasmedge-sys` to `v0.17.5` (#94) * version(rust-sys): bump to `0.17.5` Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update versioning table Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sys): update dependency Signed-off-by: Xin Liu <sam@secondstate.io> * chore(rust-sdk): update versioning table Signed-off-by: Xin Liu <sam@secondstate.io> --------- Signed-off-by: Xin Liu <sam@secondstate.io> * doc: update `CHANGELOG` (#95) Signed-off-by: Xin Liu <sam@secondstate.io> * [CI] Update `rust-static-lib` workflow (#96) * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <sam@secondstate.io> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <sam@secondstate.io> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <sam@secondstate.io> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <sam@secondstate.io> * ci(rust-static-lib): remove `libboost-all-dev` dep Signed-off-by: Xin Liu <sam@secondstate.io> --------- Signed-off-by: Xin Liu <sam@secondstate.io> * [Fix] Temporary FuncRef extraction implementation. Signed-off-by: csh <458761603@qq.com> * [CI] fix test wat Signed-off-by: csh <458761603@qq.com> --------- Signed-off-by: csh <458761603@qq.com> Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com> Signed-off-by: Xin Liu <sam@secondstate.io> Co-authored-by: Jorge Prendes <jorge.prendes@gmail.com> Co-authored-by: Xin Liu <sam@secondstate.io>
In this PR, the new C-API
WasmEdge_FunctionInstanceGetData
is introduced into thedrop
methods ofImportModule
andFunction
structs to free host data.In addition, the following minor changes are involved:
wasmedge-sdk
to0.13.0
fiber-for-wasmedge v14.04
,bindgen v0.69
Rust
to1.73
,macOS
tomacos-13