commit | e55490cb019d6584eb4981f565c378459a8e1ee3 | [log] [tgz] |
---|---|---|
author | Songchun Fan <schfan@google.com> | Mon Jun 03 16:07:11 2024 -0700 |
committer | Songchun Fan <schfan@google.com> | Tue Jun 04 13:39:44 2024 -0700 |
tree | a6a70d74710b297b265bd0c94904f9565f1f5b35 | |
parent | dabcb179b5927eb990b67c03ec76ab527bd2b1e0 [diff] |
[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