RFR: 8350915: [JMH] test SocketChannelConnectionSetup failed for 2 threads config

Volkan Yazici vyazici at openjdk.org
Fri Feb 28 12:55:34 UTC 2025


Fixes deletion of non-existent (i.e., already-deleted) files in `SocketChannelConnectionSetup`. Confirmed the fix using


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 SocketChannelConnectionSetup


Note the `-t 2` in the JMH arguments – this was triggering the reported `NoSuchFileException`.

`make test TEST=micro:SocketChannelConnectionSetup` is passing as expected too.

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

Commit messages:
 - Fix deletion of non-existent (i.e., already-deleted) files

Changes: https://git.openjdk.org/jdk/pull/23843/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23843&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8350915
  Stats: 8 lines in 1 file changed: 0 ins; 4 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/23843.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23843/head:pull/23843

PR: https://git.openjdk.org/jdk/pull/23843


More information about the net-dev mailing list