Skip to content

netty: Respect io.netty.allocator.type="unpooled" when getting Netty Allocator#10543

Merged
larry-safran merged 2 commits intogrpc:masterfrom
larry-safran:is10292
Sep 7, 2023
Merged

netty: Respect io.netty.allocator.type="unpooled" when getting Netty Allocator#10543
larry-safran merged 2 commits intogrpc:masterfrom
larry-safran:is10292

Conversation

@larry-safran
Copy link
Contributor

Fixes #10292

@larry-safran larry-safran requested a review from ejona86 September 7, 2023 01:37
}

public static ByteBufAllocator getByteBufAllocator(boolean forceHeapBuffer) {
String allocType = System.getProperty("io.netty.allocator.type", "pooled");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be after the useCustomAllocator check.

@larry-safran larry-safran merged commit 878e301 into grpc:master Sep 7, 2023
@larry-safran larry-safran deleted the is10292 branch September 9, 2023 00:07
DNVindhya pushed a commit to DNVindhya/grpc-java that referenced this pull request Oct 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 8, 2023
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.

Observe io.netty.allocator.type for custom Netty allocator

2 participants