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

MT-Cannon: Assert that current thread stack is non-empty #12160

Open
Inphi opened this issue Sep 26, 2024 · 0 comments
Open

MT-Cannon: Assert that current thread stack is non-empty #12160

Inphi opened this issue Sep 26, 2024 · 0 comments
Labels
A-cannon Area: cannon

Comments

@Inphi
Copy link
Contributor

Inphi commented Sep 26, 2024

For all MT-Cannon state transitions, a post condition must be that the current thread stack is non-empty. This is a check the VM should enforce. Every thread stack operation, including push, pop and preempt, require a thread to exist. And this assumption is maintained after the operation.

The only exception to this is when the program is exiting. That is either when the last thread exists or when sys_exit_group is invoked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cannon Area: cannon
Projects
Development

No branches or pull requests

1 participant