Prior to this commit, the `MimeTypeUtils` LRUCache would maintain a queue to track least recently used cached values. In some cases, concurrent access could create more entries in that unbounded queue than expected and spend a significant amount of time removing entries in that queue (i.e. iterating over a long list of elements). This commit ensures that recently used entries are only added to the queue if they've been removed by the current thread, in case of concurrent access. Fixes gh-24886 |
||
---|---|---|
.. | ||
kotlin-coroutines | ||
src | ||
spring-core.gradle |