netty5/resolver-dns/src
Xiaoyan Lin b7415a3307 Add a reusable ArrayList to InternalThreadLocalMap
Motivation:

See #3411. A reusable ArrayList in InternalThreadLocalMap can avoid allocations in the following pattern:

```
List<...> list = new ArrayList<...>();

add something to list but never use InternalThreadLocalMap

return list.toArray(new ...[list.size()]);

```

Modifications:

Add a reusable ArrayList to InternalThreadLocalMap and update codes to use it.

Result:

Reuse a thread local ArrayList to avoid allocations.
2016-02-01 15:49:28 +01:00
..
main/java/io/netty/resolver/dns Add a reusable ArrayList to InternalThreadLocalMap 2016-02-01 15:49:28 +01:00
test Fix testResolveIp to make it work in some special environment 2016-01-18 09:36:33 +01:00