mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8255603: Memory/Performance regression after JDK-8210985
Reviewed-by: simonis, xuelei, aph
This commit is contained in:
parent
518ff518e1
commit
64feeab70a
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue