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

Fix sync() when fork(1) #412

Merged
merged 3 commits into from
May 8, 2024
Merged

Fix sync() when fork(1) #412

merged 3 commits into from
May 8, 2024

Conversation

hnyls2002
Copy link
Collaborator

@hnyls2002 hnyls2002 commented May 7, 2024

This pr fixes #410 due to missing sync() operation when fork(1).

History review:

  • This commit 67be11c removes the fork > 1 condition, which tries to resolve the racing condition. This can be done by only a sync(?)
  • This PR Reduce overhead when fork(1) #375 reverts the condition to reduce the overhead of caching in benchmark react, but it brings a racing condition back.

To solve these two problems, we always sync before forking and only commit lazily when fork num > 1.

Copy link
Contributor

@Ying1123 Ying1123 left a comment

Choose a reason for hiding this comment

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

commit lazy is a legacy feature. I suspect we can remove it as well.

@hnyls2002 hnyls2002 merged commit d5de20a into main May 8, 2024
@hnyls2002 hnyls2002 deleted the fix-sync branch May 8, 2024 07:15
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

Successfully merging this pull request may close these issues.

Chat role prefixes for SRT backend broken in latest
2 participants