Why use a map in Thread to store ThreadLocal objects?

前端 未结 0 1575
暗喜
暗喜 2021-01-29 13:23

I\'m reading ThreadLocal\'s source codes.And I get a question which is unable to understand.That is why use a map to store ThreadLocal objects?I think use array is more suitable

相关标签:
回答
  • 消灭零回复
提交回复
热议问题