[PATCH] Review request: 7081476 test/java/net/InetSocketAddress/B6469803.java failing intermittently
yiming.wang at oracle.com
Thu Jul 19 08:54:42 UTC 2012
Please help to review the fix for 7081476
test/java/net/InetSocketAddress/B6469803.java failing intermittently.
The test failed when it is running with
java/net/DatagramPacket/ReuseBuf.java concurrently. As discussed, the
root cause is:
1. The call InetAddress.getByName("LocalHost") in ReuseBuf.java
generates the address entry which hostname is "LocalHost" and put it
with lowercase key "localhost" into InetAddress cache.
2. if the test B6469803.java executes concurrently, the call new
InetSocketAddress("localhost", 12345) lookups the InetAddress cache by
using the key "localhost", it can find the result in cache which
hostname is "LocalHost", so the test fails as the expected value is
More information about the core-libs-dev