File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
arex-agent-core/src/main/java/io/arex/agent/instrumentation Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1818import io .arex .inst .runtime .service .DataService ;
1919import io .arex .inst .runtime .util .LogUtil ;
2020import java .util .List ;
21+ import java .util .concurrent .ForkJoinTask ;
2122import net .bytebuddy .agent .builder .ResettableClassFileTransformer ;
2223
2324import java .io .File ;
@@ -56,6 +57,15 @@ private void init(String agentArgs) {
5657 RecordLimiter .init (HealthManager ::acquire );
5758 ConfigService .INSTANCE .loadAgentConfig (agentArgs );
5859 initDataCollector ();
60+ loadForkJoinTask ();
61+ }
62+
63+ /**
64+ * Load the ForkJoinTask inner class in advance for transform
65+ * ex: java.util.concurrent.ForkJoinTask$AdaptedCallable
66+ */
67+ private void loadForkJoinTask () {
68+ ForkJoinTask .class .getDeclaredClasses ();
5969 }
6070
6171 private void installSerializer () {
You can’t perform that action at this time.
0 commit comments