Skip to content

Commit

Permalink
Run class load listener only once (#12565)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Nov 5, 2024
1 parent 2717fb4 commit 2b5c4f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ private static void installBytebuddyAgent(
.with(new RedefinitionDiscoveryStrategy())
.with(AgentBuilder.DescriptionStrategy.Default.POOL_ONLY)
.with(AgentTooling.poolStrategy())
.with(new ClassLoadListener())
.with(AgentTooling.transformListener())
.with(AgentTooling.locationStrategy());
if (JavaModule.isSupported()) {
Expand Down Expand Up @@ -172,6 +171,7 @@ private static void installBytebuddyAgent(
agentListener.beforeAgent(autoConfiguredSdk);
}

agentBuilder = agentBuilder.with(new ClassLoadListener());
agentBuilder = configureIgnoredTypes(sdkConfig, extensionClassLoader, agentBuilder);

int numberOfLoadedExtensions = 0;
Expand Down

0 comments on commit 2b5c4f5

Please sign in to comment.