Skip to content

Commit

Permalink
set EXTENSION_LOADERS/EXTENSION_INSTANCE default size to 64 (#5812)
Browse files Browse the repository at this point in the history
  • Loading branch information
xylsh authored and chickenlj committed Mar 10, 2020
1 parent b7730b3 commit 9e2bb2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ public class ExtensionLoader<T> {

private static final Pattern NAME_SEPARATOR = Pattern.compile("\\s*[,]+\\s*");

private static final ConcurrentMap<Class<?>, ExtensionLoader<?>> EXTENSION_LOADERS = new ConcurrentHashMap<>();
private static final ConcurrentMap<Class<?>, ExtensionLoader<?>> EXTENSION_LOADERS = new ConcurrentHashMap<>(64);

private static final ConcurrentMap<Class<?>, Object> EXTENSION_INSTANCES = new ConcurrentHashMap<>();
private static final ConcurrentMap<Class<?>, Object> EXTENSION_INSTANCES = new ConcurrentHashMap<>(64);

private final Class<?> type;

Expand Down

0 comments on commit 9e2bb2d

Please sign in to comment.