Recycling: change the default type of the page recycler to CONCURRENT instead of SOFT_CONCURRENT.

This default type has been inherited from its ancestor, the (non-paged) recycler whose memory
usage was unbounded and required soft references to make sure it could release memory eventually.
On the contrary, the page cache recycler memory usage is bounded so we could remove soft
references in order to remove load on the garbage collector.

Note: the cache type is already randomized in integration tests.

Close #6320
This commit is contained in:
Adrien Grand 2014-05-27 19:43:06 +02:00
parent a5866e226e
commit cc9a7bd454
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ public class PageCacheRecycler extends AbstractComponent {
public static Type parse(String type) {
if (Strings.isNullOrEmpty(type)) {
return SOFT_CONCURRENT;
return CONCURRENT;
}
try {
return Type.valueOf(type.toUpperCase(Locale.ROOT));