RFR: 8260304: (se) EPollSelectorImpl wakeup mechanism broken on Linux 32-bit [v2]

Brian Burkhalter bpb at openjdk.java.net
Fri Jan 22 17:10:02 UTC 2021


On Fri, 22 Jan 2021 17:06:19 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> This readily manifests in GH Actions testing, for example:
>>  https://github.com/shipilev/jdk/runs/1748754939
>> 
>> Reproducible locally with:
>> 
>> $ CONF=linux-x86-server-fastdebug make images run-test TEST=sun/misc/JarIndex/metaInfFilenames/Basic.java
>> ...
>> Caused by: java.io.IOException: Invalid argument
>> at java.base/sun.nio.ch.EventFD.set0(Native Method)
>> at java.base/sun.nio.ch.EventFD.set(EventFD.java:48)
>> at java.base/sun.nio.ch.EPollSelectorImpl.wakeup(EPollSelectorImpl.java:251)
>> 
>> The failure is obvious when you look at the code: `long` should be `uint64_t`.
>> 
>> Additional testing:
>>  - [x] Failing test on Linux x86_32 (now passes)
>>  - [x] Failing test on Linux x86_64 (still passes)
>
> Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use the proper suffix for uint64_t literal, while we are at it

Marked as reviewed by bpb (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/2196


More information about the nio-dev mailing list