You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ countUser(john);
147
147
john =null;
148
148
```
149
149
150
-
Now `john` object should be garbage collected, but remains is memory, as it's a key in `visitsCountMap`.
150
+
Now `john` object should be garbage collected, but remains in memory, as it's a key in `visitsCountMap`.
151
151
152
152
We need to clean `visitsCountMap` when we remove users, otherwise it will grow in memory indefinitely. Such cleaning can become a tedious task in complex architectures.
0 commit comments