Skip to content

Commit b42c64c

Browse files
committed
feat: Skip JAXB generated classes classloader
In a OSGI environment JAXB code generation creates a lot `com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory$RootStubClassLoader` this classloader is used to define generated classes that must be actually defined in the correct OSGI bundle. Given the tracer needs to instrument classloading and also perform osgi bundle lookup this interaction create a lot of load in the tracer when these generated classes are defined. Given this classloader is used for the generated classes, it is safe to exclude skip it.
1 parent 2f4c864 commit b42c64c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/ClassLoaderMatchers.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public static boolean canSkipClassLoaderByName(final ClassLoader loader) {
4444
case "jdk.internal.reflect.DelegatingClassLoader":
4545
case "clojure.lang.DynamicClassLoader":
4646
case "org.apache.cxf.common.util.ASMHelper$TypeHelperClassLoader":
47+
case "com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory$RootStubClassLoader":
4748
case "sun.misc.Launcher$ExtClassLoader":
4849
case "datadog.trace.bootstrap.DatadogClassLoader":
4950
return true;

0 commit comments

Comments
 (0)