Skip to content

Auto-port 5.0: Remove dead native declarations#16786

Merged
chrisvest merged 1 commit into
5.0from
auto-port-pr-16783-to-5.0
May 14, 2026
Merged

Auto-port 5.0: Remove dead native declarations#16786
chrisvest merged 1 commit into
5.0from
auto-port-pr-16783-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16783 to 5.0
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)
@chrisvest chrisvest added this to the 5.0.0.Final milestone May 14, 2026
@chrisvest chrisvest enabled auto-merge (squash) May 14, 2026 05:09
@chrisvest chrisvest merged commit 5b8499c into 5.0 May 14, 2026
22 of 23 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16783-to-5.0 branch May 14, 2026 05:34
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