Closed 601724080 closed 2 months ago
Byte Buddy's public API is fully immutable and therewith thread-safe. How are you using the API?
Sorry, My PC don‘t work until today。 It's roughly written like this:
agentBuilder.with(AgentBuilder.RedefinitionStrategy.RETRANSFORMATION)
.with(new RedefinitionListener())
.type(pluginFinder.buildMatch())
.transform(new BaseTransformer(pluginFinder))
.with(new TransformListener())
.installOn(instrumentation);
And the BaseTransformer implements AgentBuilder.Transformer。
Any class will be transformed in the thread loading the class. If parallel class loading is supported, Byte Buddy will also modify classes in multiple threads.
I‘ll have a try, thank you.
There are too many classes that need to be modified, and the modification time is now about 20 minutes, Can byte-buddy modify bytecode in parallel?