Skip to content
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

New spawn with scheduler #4380

Merged
merged 141 commits into from
Aug 2, 2024

Conversation

mohanson
Copy link
Contributor

@mohanson mohanson commented Mar 13, 2024

In this PR, we refactored the implementation of spawn. The refactored syscall API is defined as follows: https://github.com/XuJiandong/ckb-c-stdlib/blob/syscall-spawn/ckb_syscall_apis.h#L54-L68.

Review Introduction: #4380 (comment)

Documentation: nervosnetwork/rfcs#436

mohanson and others added 21 commits March 4, 2024 14:20
Update ckb-c-stdlib with new spawn syscalls.
Update db feature
* format code

* Use libc from ckb-c-stdlib

Add test case: check_spawn_strcat
* Add more test cases

* Add more test cases
* Rewrite current_cycles

* Rewrite process_id

* Rewrite pipe

* Rewrite wait

* Rewrite read/write

* Rewrite inherited_fd

* Rewrite close
* Add test cases

* Add more test cases

* typo

* Fix spawn with inherited fd without ownership

* Add other end close case

Fix build.rs

* Wait child process and exit
* Support spawn program in witnesses

* Add cycles charge for spawn

* Generic type

* Staged

* Rewrite spawn
* Add max_vms_count

* Typo
@mohanson mohanson requested a review from a team as a code owner March 13, 2024 02:46
@mohanson mohanson requested review from quake and removed request for a team March 13, 2024 02:46
@mohanson mohanson changed the title New spawn with scheduler [WIP] New spawn with scheduler Mar 13, 2024
script/Cargo.toml Outdated Show resolved Hide resolved
@mohanson mohanson marked this pull request as draft March 13, 2024 02:53
@chenyukang chenyukang merged commit a91689c into nervosnetwork:new-verify-with-sched Aug 2, 2024
26 of 31 checks passed
@doitian doitian mentioned this pull request Aug 19, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants