-
Notifications
You must be signed in to change notification settings - Fork 769
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
[Proposal] Implement WASI-threads #2505
base: master
Are you sure you want to change the base?
Conversation
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR. This Pull Request titled "[Proposal] Implement WASI-threads" is an attempt by the contributor to significantly improve the thread handling in the WebAssembly System Interface (WASI). The changes across various files and addition of new methods relate primarily to the spawning, managing, and handling threads, as well as introducing a shared memory model in place of separate memory space per thread. The most significant potential issues span across several key areas:
In terms of the critical findings, the updates include:
Despite these substantial changes, the proposed patches lack in several best practices:
In conclusion, the changes proposed are comprehensive but they evidently lack in crucial areas like error handling, thread safety, memory management, and test coverage. These areas must be addressed to ensure the reliability, efficiency, and maintainability of the updated software. DetailsCommit d340e63b6cbeec1330c116f70159b6697b935917This patch, submitted by Sylveon from secondstate.io, primarily aims to handle the import of shared memory for WASI threads. This change affects two files mainly:
Key Changes:
Potential Issues:
Commit cffc39d6b58f9182af52ca56ac2dd91bc1833e1cThis patch primarily implements functionality for WebAssembly System Interface (WASI) threads, enabling multi-threading within WASI. It is a significant addition to the software, impacting multiple files, involved in creating, handling, and supporting threads. It comprises of 454 new lines of code and includes the creation of several new files, mostly related to thread environment configuration and management. Key Changes:
Potential Issues:
Commit 5639b65a9cdd5e811d35695422272241c2dc6f24In this Pull Request, the contributor has tried to improve thread handling in the WebAssembly System Interface (WASI) by creating more robust mechanisms for spawning and handling threads. Major changes introduced with this PR include:
Potential issues or concerns:
|
plugins/wasi_threads/CMakeLists.txt
Outdated
-DWASMEDGE_PLUGIN | ||
) | ||
|
||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Please refer to the latest master branch. We don't need to add these link options now, instead, there are some changes in the following cmakelists.txt file.
25964e2
to
92d7e3a
Compare
6c06f58
to
ad09e04
Compare
53ab4f8
to
f901197
Compare
Signed-off-by: Sylveon <sylveon@secondstate.io>
Signed-off-by: Sylveon <sylveon@secondstate.io>
Signed-off-by: Sylveon <sylveon@secondstate.io>
7294d18
to
5639b65
Compare
Todo
It is required to implement an
SharedMemory
in MemoryInstance, and