Closed xunyi-ko closed 4 years ago
StateMachineContext 中 使用了 ThreadLocal<Stack>,在每次调用fire时,会为当前线程创建一个Stack。而如果当前线程结束后,Stack并不会被销毁。因此如果有大量的线程创建、销毁时,Stack会一直累积下去,越来越多
StateMachineContext 中 使用了 ThreadLocal<Stack>,在每次调用fire时,会为当前线程创建一个Stack。而如果当前线程结束后,Stack并不会被销毁。因此如果有大量的线程创建、销毁时,Stack会一直累积下去,越来越多