This is an automated email from the ASF dual-hosted git repository.
tswstarplanet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new f3fb252 set EXTENSION_LOADERS/EXTENSION_INSTANCE default size to 64
(#5812)
f3fb252 is described below
commit f3fb25282378271bb2b2b81d3a9e0e1e9446bbb7
Author: xylsh <[email protected]>
AuthorDate: Sat Mar 7 16:08:12 2020 +0800
set EXTENSION_LOADERS/EXTENSION_INSTANCE default size to 64 (#5812)
---
.../main/java/org/apache/dubbo/common/extension/ExtensionLoader.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
index 842a43f..b53729e 100644
---
a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
+++
b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
@@ -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;