Merge pull request #1304 from DouglasMV/fixes

Fixed a typo
This commit is contained in:
Ilya Kantor 2019-09-02 14:39:24 +03:00 committed by GitHub
commit a6a75f30fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,7 +147,7 @@ countUser(john);
john = null;
```
Now `john` object should be garbage collected, but remains is memory, as it's a key in `visitsCountMap`.
Now `john` object should be garbage collected, but remains in memory, as it's a key in `visitsCountMap`.
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.