Skip to content

Commit 64feeab

Browse files
committed
8255603: Memory/Performance regression after JDK-8210985
Reviewed-by: simonis, xuelei, aph
1 parent 518ff51 commit 64feeab

File tree

1 file changed

+2
-3
lines changed
  • src/java.base/share/classes/sun/security/util

1 file changed

+2
-3
lines changed

src/java.base/share/classes/sun/security/util/Cache.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -265,8 +265,7 @@ public MemoryCache(boolean soft, int maxSize, int lifetime) {
265265
else
266266
this.queue = null;
267267

268-
int buckets = (int)(maxSize / LOAD_FACTOR) + 1;
269-
cacheMap = new LinkedHashMap<>(buckets, LOAD_FACTOR, true);
268+
cacheMap = new LinkedHashMap<>(1, LOAD_FACTOR, true);
270269
}
271270

272271
/**

0 commit comments

Comments
 (0)