gerrit/javatests
Patrick Hiesel e638d589fa Enforce a maximum PER_THREAD_CACHE_SIZE in PerThreadCache
When calling operations that create a lot of ProjectControls (e.g.
ListProjects) we observe OOMs in our Gerrit jobs from time to time. This
commit puts a max. limit on the cache size to prevent this from
happening.

The approach implemented is not an LRU. On purpose, we want to keep
PerThreadCache simple and don't add a dependency on e.g. Guava's LRU.

Change-Id: Ic2f6e11719b52ee2112f72698e887cbf8ca254d0
2018-05-09 12:06:55 +02:00
..
com/google Enforce a maximum PER_THREAD_CACHE_SIZE in PerThreadCache 2018-05-09 12:06:55 +02:00
org/eclipse/jgit Dissolve gerrit-patch-jgit top-level directory 2017-10-31 11:02:36 -04:00