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

Annotate lock-protected fields with checklocks #6566

Open
ghanan94 opened this issue Sep 13, 2021 · 2 comments
Open

Annotate lock-protected fields with checklocks #6566

ghanan94 opened this issue Sep 13, 2021 · 2 comments

Comments

@ghanan94
Copy link
Member

@ghanan94 ghanan94 commented Sep 13, 2021

Now that we have the checklocks analyzer, we should annotate values that are lock-protected with an appropriate checklocks attribute.

@BLasan
Copy link

@BLasan BLasan commented Sep 14, 2021

@ghanan94 Hi, I'm new to the community. Does this issue need a prior knowledge on this project? Or is it ok me to take up this issue?
Thanks !!

copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 396758321
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 396758321
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 396758321
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 396758321
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Introduce a lock for the endpoint's frozen field as changes to frozen do
not need to be synchronized with changes made to the endpoint's other
mutex protected fields.

Updates #6566.

PiperOrigin-RevId: 396758321
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 396758321
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 396758321
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 396946187
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 396742149
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Also update the endpoint's state field to be accessed while the mutex is
held instead of requiring atomic operations as nothing needs to call the
State method while the mutex is held.

Updates #6566.

PiperOrigin-RevId: 397010316
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 16, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 17, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 17, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 17, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397129523
copybara-service bot pushed a commit that referenced this issue Sep 17, 2021
...to catch lock-related bugs in nogo tests.

Checklocks also pointed out a locking violation which is fixed
in this change.

Updates #6566.

PiperOrigin-RevId: 397225322
copybara-service bot pushed a commit that referenced this issue Sep 23, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 397228636
copybara-service bot pushed a commit that referenced this issue Sep 23, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 397228636
copybara-service bot pushed a commit that referenced this issue Oct 1, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 400065809
copybara-service bot pushed a commit that referenced this issue Oct 1, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 400065809
copybara-service bot pushed a commit that referenced this issue Oct 1, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 400065809
copybara-service bot pushed a commit that referenced this issue Oct 1, 2021
...to catch lock-related bugs in nogo tests.

Updates #6566.

PiperOrigin-RevId: 400265818
@BLasan
Copy link

@BLasan BLasan commented Oct 30, 2021

@ghanan94 Is this resolved?

copybara-service bot pushed a commit that referenced this issue Dec 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 416425232
copybara-service bot pushed a commit that referenced this issue Dec 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 416425232
copybara-service bot pushed a commit that referenced this issue Dec 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 416425232
copybara-service bot pushed a commit that referenced this issue Dec 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 416425232
copybara-service bot pushed a commit that referenced this issue Dec 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 416425232
copybara-service bot pushed a commit that referenced this issue Dec 15, 2021
...to catch lock-related bugs in nogo tests.

This change also disables/enables packet reception before/after
save/restore with a flag that is protected by rcvMu instead of mu.

Updates #6566.

PiperOrigin-RevId: 416615336
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants