Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Backport 64feeab
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitryc committed Dec 21, 2020
1 parent 92aec52 commit ad1076a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions 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
Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit ad1076a

Please sign in to comment.