-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bound the size of cache in deprecation logger
The current implementation of the map used to de-duplicate deprecation log messages can grow without bound. This replaces the ConcurrentHashMap implementation with an `o.o.common.cache.Cache` implementation configured for a fixed maximum size. To reduce memory overhead, this also changes to storing only a hash of the key instead of the full text since we never need to retrieve the original entry. Signed-off-by: Andrew Ross <[email protected]>
- Loading branch information
Showing
3 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters