Batch re-transformations when there are a high number of inner classes by jpbempel · Pull Request #10289 · DataDog/dd-trace-java
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.
jpbempel
deleted the
jpbempel/fix-lot-inner-classes
branch
mcculls
changed the title
Fix re-transformation high number of inner classes
Batch re-transformations when there are a high number of inner classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters