Skip to content

Remove Netty UnpooledByteBufAllocator workaround#6968

Open
Fred1155 wants to merge 1 commit into
masterfrom
bole/cherry-pick-6967
Open

Remove Netty UnpooledByteBufAllocator workaround#6968
Fred1155 wants to merge 1 commit into
masterfrom
bole/cherry-pick-6967

Conversation

@Fred1155
Copy link
Copy Markdown
Contributor

  1. Cherry pick Remove Netty UnpooledByteBufAllocator workaround #6967 to run PR workflow

Motivation and Context

Modifications

Testing

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

If using the JDK SSL provider with Netty, we currently switch away from
Netty's default ByteBuffer allocator to the unpooled allocator, to work
around a regression in Netty 4.1.43 -
netty/netty#9768. This has been fixed in later
versions, so we should revert back to using the default.

This is essentially a revert of the relevant parts of a72f494.

Reduces allocation rate on NettyHttpClientH1Benchmark by around 45% when
using the JDK SSL provider.
@Fred1155 Fred1155 requested a review from a team as a code owner May 14, 2026 18:09
Copy link
Copy Markdown
Contributor

@zoewangg zoewangg left a comment

Choose a reason for hiding this comment

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

LGTM. Let's run anticanary to double check before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants