summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2022-06-09 23:54:14 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-06-09 23:54:14 +0000
commit030c47cbfb8f2f46cd0a5a0e772b2a794cf586d8 (patch)
tree81c1332b6e79950301c1092e838ffe53732ce5c8
parent5592977b0f0c0b04fdf8725ff0ff651a66c1dc89 (diff)
parent057c908ef48c96b79b727e28e6ac2a82eeca6dc7 (diff)
Merge "UserManagerService: fix comment for mRemovingUserIds"
-rw-r--r--services/core/java/com/android/server/pm/UserManagerService.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/pm/UserManagerService.java b/services/core/java/com/android/server/pm/UserManagerService.java
index be7e2dadc7ac..374a5c266108 100644
--- a/services/core/java/com/android/server/pm/UserManagerService.java
+++ b/services/core/java/com/android/server/pm/UserManagerService.java
@@ -407,9 +407,12 @@ public class UserManagerService extends IUserManager.Stub {
private final Bundle mGuestRestrictions = new Bundle();
/**
- * Set of user IDs being actively removed. Removed IDs linger in this set
- * for several seconds to work around a VFS caching issue.
- * Use {@link #addRemovingUserIdLocked(int)} to add elements to this array
+ * Set of user IDs that are being removed or were removed during the current boot. User IDs in
+ * this set aren't reused until the device is rebooted, unless MAX_USER_ID is reached. Some
+ * services don't fully clear out in-memory user state upon user removal; this behavior is
+ * intended to mitigate such issues by limiting user ID reuse. This array applies to any type
+ * of user (including pre-created users) when they are removed. Use {@link
+ * #addRemovingUserIdLocked(int)} to add elements to this array.
*/
@GuardedBy("mUsersLock")
private final SparseBooleanArray mRemovingUserIds = new SparseBooleanArray();