commit | 42e44711fa5e5ba20604d654ae74b22dd73b3a40 | [log] [tgz] |
---|---|---|
author | Jing Ji <jji@google.com> | Thu Jun 03 12:29:31 2021 -0700 |
committer | Jing Ji <jji@google.com> | Thu Jun 03 12:45:34 2021 -0700 |
tree | 9d50cc061a38cf0eedbfcc23345acbc5323b2bac | |
parent | 327a27161795688b50ce02a35903d17055a4b622 [diff] |
Fix a race condition in acquiring content provider Client could be stuck at the lock before toggling the waiting flag, meanwhile the publishing of the provider could been holding the lock and check that flag, thus result in not notifying the client. Now setting the flag with the global lock held. Bug: 186228106 Bug: 190034355 Test: atest CtsContentTestCases:android.content.cts Test: atest FrameworksCoreTests:android.content Change-Id: I7c7a3326c302cc01e52a9a5d78ea9d089be0dcae