[crac] RFR: 8371549: [CRaC] Implement C/R in Selector on non-Linux [v4]

Timofei Pushkin tpushkin at openjdk.org
Thu Jan 8 16:54:06 UTC 2026


On Thu, 8 Jan 2026 07:04:20 GMT, Radim Vansa <rvansa at openjdk.org> wrote:

>> Historically we have an extensive set of tests for java.nio.channels.Selector. However this runs only on Linux (using CRIU) rather than being platform agnostic and tested on all platforms. On Linux, it does not exercise PollSelectorImpl (this can be preferred using a system property) either - just the default EpollSelectorImpl.
>> 
>> This PR enables testing on all available Selector implementations, cleans up the implementation of those tests and introduces the C/R implementations.
>
> Radim Vansa has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fixup

test/jdk/jdk/crac/java/nio/channels/Selector/WakeupByTimeoutAfterRestoreTest.java line 45:

> 43:  * @library /test/lib
> 44:  * @build WakeupByTimeoutAfterRestoreTest
> 45:  * @run driver jdk.test.lib.crac.CracTest sun.nio.ch.PollSelectorProvider

All cases where `PollSelectorProvider` is used can be `id=ALT_UNIX` and `requires (os.family != "unix")`

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

PR Review Comment: https://git.openjdk.org/crac/pull/276#discussion_r2673117069


More information about the crac-dev mailing list