netty5/common/src
Robin Wang 010dbe3c73 Optimize space usage of FastThreadLocal (#7861)
Motivation:
A FastThreadLocal instance currently occupies 2 slots of InternalThreadLocalMap of every thread. Actually for a FastThreadLocalThread, it does not need to store cleaner flags of FastThreadLocal instances. Besides, using BitSet to store cleaner flags is also better for space usage.

Modification:
Use BitSet to optimize space usage of FastThreadLocal.

Result:
Avoid unnecessary slot occupancy. Cleaner flags are now stored into a BitSet.
2018-04-24 09:19:01 +02:00
..
main Optimize space usage of FastThreadLocal (#7861) 2018-04-24 09:19:01 +02:00
test Optimize space usage of FastThreadLocal (#7861) 2018-04-24 09:19:01 +02:00