Skip to content

Conversation

jimmygchen
Copy link
Member

Issue Addressed

I went through the code base and look for places where we acquire fork choice locks (after the deadlock bug was found and fixed in #4687), and discovered an instance where we re-acquire a lock immediately after dropping it. This shouldn't cause deadlock like the other issue, but is slightly less efficient.

@jimmygchen jimmygchen added ready-for-review The code is ready for review optimization Something to make Lighthouse run more efficiently. labels Aug 31, 2023
@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Sep 11, 2023
@michaelsproul
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Sep 15, 2023
…4688)

## Issue Addressed

I went through the code base and look for places where we acquire fork choice locks (after the deadlock bug was found and fixed in #4687), and discovered an instance where we re-acquire a lock immediately after dropping it. This shouldn't cause deadlock like the other issue, but is slightly less efficient.
@bors
Copy link

bors bot commented Sep 15, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Sep 15, 2023
…4688)

## Issue Addressed

I went through the code base and look for places where we acquire fork choice locks (after the deadlock bug was found and fixed in #4687), and discovered an instance where we re-acquire a lock immediately after dropping it. This shouldn't cause deadlock like the other issue, but is slightly less efficient.
@bors
Copy link

bors bot commented Sep 15, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Sep 15, 2023
…4688)

## Issue Addressed

I went through the code base and look for places where we acquire fork choice locks (after the deadlock bug was found and fixed in #4687), and discovered an instance where we re-acquire a lock immediately after dropping it. This shouldn't cause deadlock like the other issue, but is slightly less efficient.
@bors
Copy link

bors bot commented Sep 15, 2023

Build failed:

@michaelsproul
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Sep 20, 2023
…4688)

## Issue Addressed

I went through the code base and look for places where we acquire fork choice locks (after the deadlock bug was found and fixed in #4687), and discovered an instance where we re-acquire a lock immediately after dropping it. This shouldn't cause deadlock like the other issue, but is slightly less efficient.
@bors
Copy link

bors bot commented Sep 20, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Sep 21, 2023
…4688)

## Issue Addressed

I went through the code base and look for places where we acquire fork choice locks (after the deadlock bug was found and fixed in #4687), and discovered an instance where we re-acquire a lock immediately after dropping it. This shouldn't cause deadlock like the other issue, but is slightly less efficient.
@bors
Copy link

bors bot commented Sep 21, 2023

Build failed (retrying...):

@michaelsproul
Copy link
Member

bors r-
bors r+

@bors
Copy link

bors bot commented Sep 21, 2023

Canceled.

bors bot pushed a commit that referenced this pull request Sep 21, 2023
…4688)

## Issue Addressed

I went through the code base and look for places where we acquire fork choice locks (after the deadlock bug was found and fixed in #4687), and discovered an instance where we re-acquire a lock immediately after dropping it. This shouldn't cause deadlock like the other issue, but is slightly less efficient.
@bors
Copy link

bors bot commented Sep 21, 2023

@bors bors bot changed the title Reuse fork choice read lock instead of re-acquiring it immediately [Merged by Bors] - Reuse fork choice read lock instead of re-acquiring it immediately Sep 21, 2023
@bors bors bot closed this Sep 21, 2023
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
…igp#4688)

## Issue Addressed

I went through the code base and look for places where we acquire fork choice locks (after the deadlock bug was found and fixed in sigp#4687), and discovered an instance where we re-acquire a lock immediately after dropping it. This shouldn't cause deadlock like the other issue, but is slightly less efficient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Something to make Lighthouse run more efficiently. ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants