make benchmark use loopback address unixdomainchannels
authormichaelm
Tue, 05 Nov 2019 16:00:51 +0000
branchunixdomainchannels
changeset 58935 f31f0c8bff89
parent 58933 57a2e3ed90ec
child 58939 aca099f4b3ec
make benchmark use loopback address
test/micro/org/openjdk/bench/java/net/SocketChannelCompare.java
--- a/test/micro/org/openjdk/bench/java/net/SocketChannelCompare.java	Tue Nov 05 15:10:00 2019 +0000
+++ b/test/micro/org/openjdk/bench/java/net/SocketChannelCompare.java	Tue Nov 05 16:00:51 2019 +0000
@@ -80,7 +80,7 @@
 
 
     private ServerSocketChannel getInetServerSocketChannel() throws IOException {
-        InetAddress iaddr = InetAddress.getLocalHost();
+        InetAddress iaddr = InetAddress.getLoopbackAddress();
         return ServerSocketChannel.open().bind(null);
     }