Skip to content

Commit bacc8ca

Browse files
committed
Load 'AbcModule' definitions from the instrumentation class-loader so they can be unloaded after startup
1 parent 14f1a38 commit bacc8ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/DatadogClassLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ protected Enumeration<URL> findResources(String name) {
9393
@Override
9494
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
9595
if (name.startsWith("datadog.trace.instrumentation.")
96-
&& (name.endsWith("$Muzzle") || name.endsWith("Instrumentation"))) {
96+
&& (name.endsWith("$Muzzle")
97+
|| name.endsWith("Instrumentation")
98+
|| name.endsWith("Module"))) {
9799
InstrumentationClassLoader cl;
98100
if (null == (cl = instrumentationClassLoader.get())) {
99101
synchronized (instrumentationClassLoaderLock) {

0 commit comments

Comments
 (0)