Skip to content

Commit

Permalink
remove obsolete comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainJuge committed Jan 15, 2025
1 parent 3235f3a commit aa23db0
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,6 @@ public static InstrumentationModuleClassLoader getInstrumentationClassLoader(
ExperimentalInstrumentationModule experimentalModule =
(ExperimentalInstrumentationModule) module;

// Opening JPMS modules requires to use a 'witness class' in the target module to get a
// reference to the module, which means we have to eagerly load the class.
//
// However, this code here triggered when the advice is being executed for the first time so
// this only creates a very small eager loading that is unlikely to have impact on the
// application.
//
// Also, using a class that is already loaded like the one that is being instrumented or a
// related one would increase the likeliness of not having an effect on application class
// loading.

Instrumentation instrumentation = InstrumentationHolder.getInstrumentation();
if (instrumentation == null) {
throw new IllegalStateException("global instrumentation not available");
Expand Down

0 comments on commit aa23db0

Please sign in to comment.