Skip to content

Commit

Permalink
修复多线程bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Dec 6, 2024
1 parent d1325c9 commit 123754c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ object ClassFileUtils {
return
}
val list = invokeClasses.computeIfAbsent(staticClassName) { mutableListOf() }
list.add(InvokeClass(classMethodName,invokeBody,methodName))
synchronized(list){
list.add(InvokeClass(classMethodName,invokeBody,methodName))
}


val className = if (reflectInvokeMethod && reflectInvokeMethodStatic){
staticClassName
Expand Down

0 comments on commit 123754c

Please sign in to comment.