Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use syscall type to delay the creation of syscall struct. #2155

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

yihuaf
Copy link
Collaborator

@yihuaf yihuaf commented Jul 10, 2023

Pulling out changes from #2121

Included #2150 to disable musl test. Will rebase once #2150 is merged.

Details:

In this PR we propose to store a SyscallType instead of syscall structure. The syscall structure itself is am empty struct, so we can delay the creation. In this way, we don't have to pass this reference through the fork/clone boundary. The eventual goal is not to use lifetime reference in the container_args structure.

@yihuaf yihuaf requested review from utam0k and a team July 10, 2023 21:23
@yihuaf yihuaf force-pushed the yihuaf/syscall_type branch from 9d52304 to ed57fef Compare July 10, 2023 21:26
@yihuaf yihuaf marked this pull request as ready for review July 10, 2023 21:26
@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2023

Codecov Report

Merging #2155 (fba8c41) into main (e5f74ca) will increase coverage by 0.00%.
The diff coverage is 61.90%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2155   +/-   ##
=======================================
  Coverage   64.82%   64.83%           
=======================================
  Files         129      129           
  Lines       14769    14773    +4     
=======================================
+ Hits         9574     9578    +4     
  Misses       5195     5195           

@yihuaf yihuaf force-pushed the yihuaf/syscall_type branch 2 times, most recently from 42e185d to fba8c41 Compare July 10, 2023 21:56
@yihuaf yihuaf self-assigned this Jul 10, 2023
Signed-off-by: yihuaf <yihuaf@unkies.org>
@yihuaf yihuaf force-pushed the yihuaf/syscall_type branch from fba8c41 to fb807b4 Compare July 11, 2023 06:29
@yihuaf yihuaf changed the title Use syscall type can delay the creation of syscall struct. Use syscall type to delay the creation of syscall struct. Jul 11, 2023
@utam0k utam0k added breaking change kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed kind/feature labels Jul 14, 2023
Copy link
Member

@utam0k utam0k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good, but I made the kind label more appropriate kind/cleanup .

@utam0k utam0k merged commit 49a85f6 into youki-dev:main Jul 14, 2023
@utam0k
Copy link
Member

utam0k commented Jul 14, 2023

@yihuaf
Thanks for resolving the tech debut I made🙏

@yihuaf yihuaf deleted the yihuaf/syscall_type branch July 14, 2023 15:22
@yihuaf
Copy link
Collaborator Author

yihuaf commented Jul 14, 2023

@yihuaf Thanks for resolving the tech debut I made🙏

No worries :) More incoming.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
breaking change kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants