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

Commit f192273e authored by Song Chun Fan's avatar Song Chun Fan
Browse files

[pm] reduce lock contention on createSession

mInstallerUid doesn't need to be locked and it has been changed to volatile since ag/14040815. Removing the synchronized block so that the creation of one session is not blocked by the validation of another.

Change-Id: Ife08af651656a81a59be0c1ffb2a30a84e390f8c
BUG: 319178414
FIXES: 319178414
Test: n/a
FLAG: EXEMPT bug fix
parent c4b3da52
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4445,10 +4445,8 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
     * @return the uid of the owner this session
     */
    public int getInstallerUid() {
        synchronized (mLock) {
        return mInstallerUid;
    }
    }

    /**
     * @return the package name of this session