On Thu, 28 Aug 2025 08:51:14 GMT, Darragh Clarke <dcla...@openjdk.org> wrote:

>> This PR aims to Panamize the Java Kqueue implementation, This is based on 
>> the work that was previously shared in 
>> https://github.com/openjdk/jdk/pull/22307 , The main change since then is 
>> that this branch takes advantage of the changes made in 
>> https://github.com/openjdk/jdk/pull/25043 to allow for better performance 
>> during errno handling.
>> 
>> These changes feature a lot of Jextract generated files, though alterations 
>> have been made in relation to Errno handling and performance improvements.
>> 
>> I will update this description soon to include performance metrics on a few 
>> microbenchmarks, though currently it's roughly 2% to 3% slower with the 
>> changes, which is somewhat expected, though there are still a few ideas of 
>> possible performance improvements that could be tried. Any suggestions or 
>> comments in that area are more than welcome however.
>
> Darragh Clarke has updated the pull request with a new target base due to a 
> merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains 12 additional 
> commits since the last revision:
> 
>  - fixed copyright header
>  - merged master into branch
>  - moved repeating code into own method
>  - implementing feedback, adding missing errno checks, cleanup
>  - feedback
>  - general cleanup
>  - small refactoring
>  - Performance
>  - implementing feedback
>  - removed unrelated change
>  - ... and 2 more: https://git.openjdk.org/jdk/compare/025b157a...cc5f558a

src/java.base/macosx/classes/sun/nio/ch/KQueuePort.java line 57:

> 55: 
> 56:     // address of the poll array passed to kqueue_wait
> 57:     private final MemorySegment pollArrayRegions;

The "Regions" suffix is confusing here? This is the poll array that we invoke 
kqueue so I don't think "Regions" should be in the name.

src/java.base/macosx/classes/sun/nio/ch/KQueueSelectorImpl.java line 103:

> 101:     @Override
> 102:     protected int doSelect(Consumer<SelectionKey> action, long timeout)
> 103:             throws IOException

I assume you didn't mean to change this (processEvents too).

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25546#discussion_r2307385367
PR Review Comment: https://git.openjdk.org/jdk/pull/25546#discussion_r2307386648

Reply via email to