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

futex 设计没有考虑 private futex 问题 #22

Open
Azure-stars opened this issue Mar 7, 2024 · 1 comment
Open

futex 设计没有考虑 private futex 问题 #22

Azure-stars opened this issue Mar 7, 2024 · 1 comment

Comments

@Azure-stars
Copy link

linux 的 futex 包括了 private futex 和 shared futex 两种,即进程间是否共享,当前 starry 的 futex 设计仅是 shared futex,在 private futex 下可能出现访问地址无效的错误。

@YXalix
Copy link

YXalix commented Apr 22, 2024

目前用一个全局的BTreeMap存储的. 当两个进程都存在futex wait时, 每次进入syscall处理前, 都会调用check_dead_wait, 这时private futex的情况下就乱套了;

能否一起讨论下如何重构futex, 并实现它

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants