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

Add cloned to bank in block_subscribe #24799

Closed

Conversation

buffalu
Copy link
Contributor

@buffalu buffalu commented Apr 28, 2022

Problem

On my M1 Max, was running into some type of bank_forks deadlock issue. I'm not able to reproduce it yet on my Linux machine, but changing to this makes the issue go away.

Summary of Changes

Add .cloned() to bank and drop lock immediately after grabbing Arc

@mergify mergify bot added the community Community contribution label Apr 28, 2022
@mergify mergify bot requested a review from a team April 28, 2022 14:49
@jstarry
Copy link
Member

jstarry commented Apr 28, 2022

I'm going to go through the bank forks api to remove all methods which return a borrowed value. It's really bad to hold a read lock on bank forks

@buffalu
Copy link
Contributor Author

buffalu commented Apr 28, 2022

praise be to @jstarry

@jstarry
Copy link
Member

jstarry commented May 4, 2022

Closed by #24805

@jstarry jstarry closed this May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants