Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

larry-safran
Copy link
Contributor

Fixes #10292

@larry-safran larry-safran requested a review from ejona86 September 7, 2023 01:37
@@ -133,6 +135,12 @@ private static final class ByteBufAllocatorPreferHeapHolder {
}

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
6 checks passed
@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