Skip to content
Snippets Groups Projects
Commit e55490cb authored by Songchun Fan's avatar Songchun Fan
Browse files

[pm] correctly lock/unlock mInstallLock

ReentrantLock.lock() doesn't lock on the same thing as synchronized()
locking. Since we use lock(mInstallLock) for b/306917971, we need to update
all usages of synchronized(mInstallLock) to lock(mInstallLock).

BUG: 341332694
Test: manually going through repro steps in the bug
Test: atest FrameworksMockingServicesTests:com.android.server.pm.PackageManagerTracedLockTest

Change-Id: I03d47a6ecbd0099d4c4130d1e3b070b55bfdcecb
parent dabcb179
No related branches found
No related tags found
No related merge requests found
Showing
with 306 additions and 156 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment