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

Cleaning up synchronization in the repository tracker #308

Merged
merged 1 commit into from
Mar 29, 2018
Merged

Conversation

AlexandraRoatis
Copy link
Contributor

  • added separate locks for changes to accounts and changed to contracts
  • removed synchronization from all methods

lockAccounts.writeLock().lock();
lockDetails.writeLock().lock();
try {
getAccountState(address).delete();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My impression is that this wouldn't work, due to getAccountState() requiring a readLock.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind I am incorrect on this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants