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

Process ids don't cycle nicely #1364

Open
pguyot opened this issue Nov 9, 2024 · 0 comments
Open

Process ids don't cycle nicely #1364

pguyot opened this issue Nov 9, 2024 · 0 comments

Comments

@pguyot
Copy link
Collaborator

pguyot commented Nov 9, 2024

Local process ids can overflow.

They are incremented not taking into account the fact that they are encoded on 28 bits only.

If the counter overflows at 1 << 28, we should truncate it back to 1 and be careful to not affect existing process ids. While there cannot be more than 2^28 living processes on a microcontroller, we could have a conflict if a system is running long enough besides the lost bits when encoding to a term.

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

1 participant