Skip to content

netty: use singleton for the custom allocator.#6526

Merged
zhangkun83 merged 1 commit intogrpc:masterfrom
zhangkun83:static_custom_allocator
Dec 17, 2019
Merged

netty: use singleton for the custom allocator.#6526
zhangkun83 merged 1 commit intogrpc:masterfrom
zhangkun83:static_custom_allocator

Conversation

@zhangkun83
Copy link
Copy Markdown
Contributor

The allocator has a circular reference that prevents it from GC'ed,
thus causes memory leak if gRPC Channels are created and shutdown
(even cleanly) on a regular basis.

See netty/netty#6891 (comment)
and internal b/146074696.

The allocator has a circular reference that prevents it from GC'ed,
thus causes memory leak if gRPC Channels are created and shutdown
(even cleanly) on a regular basis.

See netty/netty#6891 (comment)
and internal b/146074696.
@zhangkun83 zhangkun83 requested a review from ejona86 December 17, 2019 01:16
@zhangkun83 zhangkun83 merged commit ada575d into grpc:master Dec 17, 2019
zhangkun83 added a commit to zhangkun83/grpc-java that referenced this pull request Dec 17, 2019
Since grpc#6526 has resolved the memory leak, let's turn it back on.
zhangkun83 added a commit that referenced this pull request Dec 18, 2019
…6528)

Since #6526 has resolved the memory leak, let's turn it back on.
@lock lock Bot locked as resolved and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants