Skip to content

Commit 46a956d

Browse files
committed
Use AGENT_CLASSLOADER directly
1 parent 3e11771 commit 46a956d

File tree

1 file changed

+1
-1
lines changed
  • dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ private static synchronized void startJmx() {
869869
// Load JFR Handlers class early, if present (it has been moved and renamed in JDK23+).
870870
// This prevents a deadlock. See PROF-13025.
871871
try {
872-
Agent.class.getClassLoader().loadClass("jdk.jfr.events.Handlers");
872+
AGENT_CLASSLOADER.loadClass("jdk.jfr.events.Handlers");
873873
} catch (Exception e) {
874874
// Ignore when the class is not found or anything else goes wrong.
875875
}

0 commit comments

Comments
 (0)