File tree Expand file tree Collapse file tree
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020
2121@ Slf4j
2222public class AgentInstaller {
23+ static {
24+ // WeakMap is used by other classes below, so we need to register the provider first.
25+ registerWeakMapProvider ();
26+ }
27+
2328 public static final DDLocationStrategy LOCATION_STRATEGY = new DDLocationStrategy ();
2429 public static final AgentBuilder .PoolStrategy POOL_STRATEGY = new DDCachingPoolStrategy ();
2530 private static volatile Instrumentation INSTRUMENTATION ;
@@ -41,7 +46,6 @@ public static ResettableClassFileTransformer installBytebuddyAgent(final Instrum
4146 public static ResettableClassFileTransformer installBytebuddyAgent (
4247 final Instrumentation inst , final AgentBuilder .Listener ... listeners ) {
4348 INSTRUMENTATION = inst ;
44- registerWeakMapProvider ();
4549
4650 AgentBuilder agentBuilder =
4751 new AgentBuilder .Default ()
You can’t perform that action at this time.
0 commit comments