RFR: 8351601: [JMH] test UnixSocketChannelReadWrite failed for 2 threads config

Michael McMahon michaelm at openjdk.org
Fri Mar 21 16:10:07 UTC 2025


On Thu, 20 Mar 2025 08:37:45 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

> Guards against multi-deletes in `UnixSocketChannelReadWrite`.
> 
> The fix can be verified as follows:
> 
> 
> make build-microbenchmark
> build/linux-x64/jdk/bin/java \
>   -jar build/linux-x64/images/test/micro/benchmarks.jar \
>   -f 1 -wi 1 -i 1 -t 2 UnixSocketChannelReadWrite
> 
> 
> Note that `-t 2` denotes the number of worker threads, i.e., parallelism.

Seems like the only explanation for why that is happening is someone cleaning out /tmp while the test is running, which could still pose a problem for the test in other ways. I wonder would it also make sense (in addition to the change proposed) to create the temp directory in the current working directory, which is recommended practice with `jtreg` I believe?

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

PR Review: https://git.openjdk.org/jdk/pull/24126#pullrequestreview-2706488231


More information about the net-dev mailing list