Skip to content

Auto-port 4.1: Remove dead native declarations#16785

Merged
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16783-to-4.1
May 11, 2026
Merged

Auto-port 4.1: Remove dead native declarations#16785
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16783-to-4.1

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16783 to 4.1
Cherry-picked commit: 596be74


Motivation:
ssizeMax, iovMax, uioMaxIov are declared native in the epoll NativeStaticallyReferencedJniMethods but never added to the epoll RegisterNatives table

Runtime Impact:
None — these three methods are never invoked from the epoll class; they are dead native declarations

Modification:

Remove ssizeMax, iovMax, and uioMaxIov from NativeStaticallyReferencedJniMethods.java in the epoll package — they are unreachable dead code that causes false positives in bytecode analysis

Result:

Fixes #16757

If there is no issue then describe the changes introduced by this PR.

Motivation:
`ssizeMax`, `iovMax`, `uioMaxIov` are declared native in the epoll
`NativeStaticallyReferencedJniMethods` but never added to the epoll
RegisterNatives table

Runtime Impact:
None — these three methods are never invoked from the epoll class; they
are dead native declarations

Modification:

Remove `ssizeMax`, `iovMax`, and `uioMaxIov` from
`NativeStaticallyReferencedJniMethods.java` in the `epoll` package —
they are unreachable dead code that causes false positives in bytecode
analysis

Result:

Fixes #16757

If there is no issue then describe the changes introduced by this PR.

(cherry picked from commit 596be74)
@normanmaurer normanmaurer added this to the 4.1.134.Final milestone May 11, 2026
@normanmaurer normanmaurer merged commit 1e28f3c into 4.1 May 11, 2026
18 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16783-to-4.1 branch May 11, 2026 15:06
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