netty5/common/src
Scott Mitchell ea73e47a8b
FastThreadLocal#set remove duplicate isIndexedVariableSet call
Motivation:
FastThreadLocal#set calls isIndexedVariableSet to determine if we need to register with the cleaner, but the set(InternalThreadLocalMap, V) method will also internally do this check so we can share code and only do the check a single time.

Modifications:
- extract code from set(InternalThreadLocalMap, V) so it can be called externally to determine if a new item was created

Result:
Less code duplication in FastThreadLocal#set.
2017-12-22 09:41:57 -08:00
..
main FastThreadLocal#set remove duplicate isIndexedVariableSet call 2017-12-22 09:41:57 -08:00
test Ensure ObjectCleaner will also be used when FastThreadLocal.set is used. 2017-12-22 07:11:22 +01:00