yao liu
yao liu

Reputation: 33

Do netty's UnPooled ByteBuf need Reference counted?

Pooled ByteBuf need return to the pool when Reference count associated with it reach 0 according to http://netty.io/wiki/reference-counted-objects.html,But what do with ByteBuf alloc from UnPooled?

Upvotes: 0

Views: 382

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

Yes there are reference counted to allow us free direct memory in a timely manner.

Upvotes: 2

Related Questions