From d12ba76af58b06a8ac368d9eba07d31ea04e3bbe Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Wed, 15 Sep 2021 16:28:30 +0800 Subject: [PATCH] remove unnecessary synchronized in PluginClassLoader#loadClass. #19 --- .../java/com/alibaba/oneagent/plugin/PluginClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/one-java-agent-plugin/src/main/java/com/alibaba/oneagent/plugin/PluginClassLoader.java b/one-java-agent-plugin/src/main/java/com/alibaba/oneagent/plugin/PluginClassLoader.java index 8f987dc..6037adb 100644 --- a/one-java-agent-plugin/src/main/java/com/alibaba/oneagent/plugin/PluginClassLoader.java +++ b/one-java-agent-plugin/src/main/java/com/alibaba/oneagent/plugin/PluginClassLoader.java @@ -58,7 +58,7 @@ public PluginClassLoader(URL[] urls, ClassLoader parent, SharedService sharedSer } @Override - protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { + protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException { synchronized (LOCK_PROVIDER.getLock(this, name)) { // 1. loaded class