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

Fix Core Data deadlocks #989

Merged
merged 2 commits into from
Nov 17, 2021
Merged

Fix Core Data deadlocks #989

merged 2 commits into from
Nov 17, 2021

Conversation

samsymons
Copy link
Contributor

@samsymons samsymons commented Oct 23, 2021

Task/Issue URL: https://app.asana.com/0/414709148257752/1201255714910606/f
Tech Design URL:
CC:

Description:

This PR updates Database.swift to leverage the RunLoop instead of semaphores when waiting for database migrations to complete.

Steps to test this PR:

  1. Test features which use the database thoroughly

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPad

OS Testing:

  • iOS 13
  • iOS 14
  • iOS 15

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@samsymons samsymons changed the title Sam/core data deadlock fixes Fix Core Data deadlocks Oct 23, 2021
Copy link
Collaborator

@bwaresiak bwaresiak left a comment

Choose a reason for hiding this comment

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

Great job! LGTM!

@samsymons samsymons merged commit cb4393c into develop Nov 17, 2021
@samsymons samsymons deleted the sam/core-data-deadlock-fixes branch November 17, 2021 16:38
samsymons added a commit that referenced this pull request Nov 27, 2021
* develop:
  Stop web views from loading during Fire button calls (#1010)
  Fix `Unprotected Sites` toolbar was kept hidden. (#990)
  Add a check for the Homebrew location on M1 Macs. (#1000)
  Bump version number
  Fixes and enhanced stats for recently added debug pixel (#1007)
  Fix Core Data deadlocks (#989)
  Update version number
  Improvements to cookie cleaning (#1002)
  Remove unused TrackingProtectionStats dead code (#996)
  Update version
  Update version number
  Update TDS dependency after latest release (#995)
  Support for Tracker Exceptions (#991)
  Use temp unprotected list and user list for all features (#993)
  Run ESLint on scripts (#984)
  Move to using mutation observing to reduce page overhead (#985)
  Disabling SafeBrowsing due to privacy implications (#992)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants