Skip to content
Permalink
Browse files
8255603: Memory/Performance regression after JDK-8210985
Backport-of: 64feeab
  • Loading branch information
Dmitry Cherepanov committed Dec 22, 2020
1 parent 164abd4 commit 9db1121812bde1b55408e7bd442a35b436ee9a2a
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/java.base/share/classes/sun/security/util/Cache.java
@@ -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 @@ public MemoryCache(boolean soft, int maxSize, int lifetime) {
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);
}

/**

1 comment on commit 9db1121

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 9db1121 Dec 22, 2020

Please sign in to comment.