8255603: Memory/Performance regression after JDK-8210985

Reviewed-by: simonis, xuelei, aph
This commit is contained in:
Christoph Langer 2020-11-01 23:24:47 +00:00
parent 518ff518e1
commit 64feeab70a

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -265,8 +265,7 @@ class MemoryCache<K,V> extends Cache<K,V> {
else
this.queue = null;
int buckets = (int)(maxSize / LOAD_FACTOR) + 1;
cacheMap = new LinkedHashMap<>(buckets, LOAD_FACTOR, true);
cacheMap = new LinkedHashMap<>(1, LOAD_FACTOR, true);
}
/**