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

Support blocking data structures capacity constraints #437

Open
eupp opened this issue Dec 12, 2024 · 0 comments
Open

Support blocking data structures capacity constraints #437

eupp opened this issue Dec 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@eupp
Copy link
Collaborator

eupp commented Dec 12, 2024

Some blocking data structures (for instance, channels, queues, etc.) may have capacity constraints.
For example, trying to send a new element channel into a filled channel with the capacity 1 would result in the suspension of the send operation.

Currently, Lincheck does not account for this type of constraints.
For example, for the Buffered1Channel data structure, and the following scenario, the Lincheck would report hung:

= The execution has hung, see the thread dump =
| ------------------ |
|      Thread 1      |
| ------------------ |
| send(5): void      |
| send(5): Suspended |
| send(5): -         |
| ------------------ |

We need to add a way for the user to configure such constraints for their data-structures (similarly to how nonParallelGroup option allows to configure single/multiple producer/consumer constraints).

@eupp eupp added the enhancement New feature or request label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant