Batch re-transformations when there are a high number of inner classes by jpbempel · Pull Request #10289 · DataDog/dd-trace-java

@jpbempel

if a source file has a large number of inner classes, putting a
line probe will trigger the retransformation of all inner classes
individually which can lead to significant overhead (retransformation
is Stop-The-World event). The api instrumentation::retransformClasses
can take a list of classes that are retransformed in a single STW
event which armortized the cost. However we put a hard limit of
number of inner classes to avoid long STW event in case of generated
code.

tylfin

@jpbempel jpbempel deleted the jpbempel/fix-lot-inner-classes branch

January 5, 2026 13:07

@mcculls mcculls changed the title Fix re-transformation high number of inner classes Batch re-transformations when there are a high number of inner classes

Jan 6, 2026