Integrated: 8253478: (se) epoll Selector should use eventfd for wakeup instead of pipe
Brian Burkhalter
bpb at openjdk.java.net
Thu Jan 21 21:42:23 UTC 2021
On Thu, 14 Jan 2021 16:44:47 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Please review this change which modifies the Linux `epoll(7)`-based `Selector` to use `eventfd(2)` instead of `pipe(2)` in its wakeup mechanism. The change passes all tier 1-tier 3 tests on Linux. Based on rudimentary testing, there does not appear to be any appreciable change in performance. One improvement however is that only one file descriptor instead of two is used for the wakeup. No test is included as the code is covered well by existing tests.
This pull request has now been integrated.
Changeset: a8073efe
Author: Brian Burkhalter <bpb at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/a8073efe
Stats: 203 lines in 4 files changed: 189 ins; 3 del; 11 mod
8253478: (se) epoll Selector should use eventfd for wakeup instead of pipe
Reviewed-by: alanb
-------------
PR: https://git.openjdk.java.net/jdk/pull/2082
More information about the nio-dev
mailing list