Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 51747a5c authored by Diego Vela's avatar Diego Vela Committed by Android Build Coastguard Worker
Browse files

Fix deadlock in BaseDataProducer.

Move calls to abstract method outside the synchronized block. When they
are in the synchronized block it can cause a deadlock in the following
way. If two classes have locks and they interact through callbacks the
aquiring the locks can have a mixed order.  The mixed order causes a
deadlock.

Bug: 276436535
Test: Run foldable samples.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e214c94a8aa3a386c41eb0238a68ce5b00129b57)
Merged-In: Ie71ec56e7ba43976fee3e69f74ff386c79c96a7a
Change-Id: Ie71ec56e7ba43976fee3e69f74ff386c79c96a7a
parent 0bead2d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment