Skip to content

Auto-port 4.1: AdaptivePoolingAllocator: remove ensureAccessible() call in capacity(int) method#16475

Merged
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16473-to-4.1
Mar 16, 2026
Merged

Auto-port 4.1: AdaptivePoolingAllocator: remove ensureAccessible() call in capacity(int) method#16475
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16473-to-4.1

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16473 to 4.1
Cherry-picked commit: 2ac5bf4


Motivation:

In AdaptivePoolingAllocator.capacity(int), the call to checkNewCapacity(newCapacity) already invokes ensureAccessible() internally, making the explicit ensureAccessible() call redundant.

Modification:

Remove the redundant ensureAccessible() call from the capacity(int) method.

Result:

Reducing unnecessary overhead.

…ty(int)` method (#16473)

Motivation:

In `AdaptivePoolingAllocator.capacity(int)`, the call to
`checkNewCapacity(newCapacity)` already invokes `ensureAccessible()`
internally, making the explicit `ensureAccessible()` call redundant.

Modification:

Remove the redundant `ensureAccessible()` call from the `capacity(int)`
method.

Result:

Reducing unnecessary overhead.

(cherry picked from commit 2ac5bf4)
@normanmaurer normanmaurer added this to the 4.1.132.Final milestone Mar 16, 2026
@normanmaurer normanmaurer merged commit 3ac3f37 into 4.1 Mar 16, 2026
19 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16473-to-4.1 branch March 16, 2026 13:30
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