RFR: 8360025: (se) Convert kqueue Selector Implementation to use FFM APIs

Darragh Clarke dclarke at openjdk.org
Tue Aug 12 11:20:12 UTC 2025


On Thu, 31 Jul 2025 12:15:32 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> IMHO the more honest approach is to move these constants closer to the _h generated files that use them, as that's the way jextract intends them to be used.
>
> (Also, the latest version of jextract uses `Linker.canonicalLayouts` to derive these constants, which might be more robust longer term)

I can update FFMUtils so that all the different pointers user `Liner.canonicalLayouts`,

As for the other point, I think you're right that the shared FFMUtils won't work though I think it's a bit of a shame because of the number of similar duplicate lines. I can move it back to using different ones for each platform in the next commit

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

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


More information about the nio-dev mailing list