Skip to content

Commit aa23db0

Browse files
committed
remove obsolete comment
1 parent 3235f3a commit aa23db0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/instrumentation/indy/IndyModuleRegistry.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@ public static InstrumentationModuleClassLoader getInstrumentationClassLoader(
7373
ExperimentalInstrumentationModule experimentalModule =
7474
(ExperimentalInstrumentationModule) module;
7575

76-
// Opening JPMS modules requires to use a 'witness class' in the target module to get a
77-
// reference to the module, which means we have to eagerly load the class.
78-
//
79-
// However, this code here triggered when the advice is being executed for the first time so
80-
// this only creates a very small eager loading that is unlikely to have impact on the
81-
// application.
82-
//
83-
// Also, using a class that is already loaded like the one that is being instrumented or a
84-
// related one would increase the likeliness of not having an effect on application class
85-
// loading.
86-
8776
Instrumentation instrumentation = InstrumentationHolder.getInstrumentation();
8877
if (instrumentation == null) {
8978
throw new IllegalStateException("global instrumentation not available");

0 commit comments

Comments
 (0)