[PATCH] Review request: 7081476 test/java/net/InetSocketAddress/B6469803.java failing intermittently (original) (raw)
Eric Wang yiming.wang at oracle.com
Thu Jul 19 08:54:42 UTC 2012
- Previous message: hg: jdk8/tl/jdk: 7185051: Remove TestProviderLeak.java from the ProblemList
- Next message: [PATCH] Review request: 7081476 test/java/net/InetSocketAddress/B6469803.java failing intermittently
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Chris,
Please help to review the fix for 7081476 <http://monaco.us.oracle.com/detail.jsf?cr=7081476>: test/java/net/InetSocketAddress/B6469803.java failing intermittently. http://dl.dropbox.com/u/90659131/fixes/7081476/webrev/index.html
The test failed when it is running with java/net/DatagramPacket/ReuseBuf.java concurrently. As discussed, the root cause is:
- 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.
- 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 "localhost".
Regards, Eric
- Previous message: hg: jdk8/tl/jdk: 7185051: Remove TestProviderLeak.java from the ProblemList
- Next message: [PATCH] Review request: 7081476 test/java/net/InetSocketAddress/B6469803.java failing intermittently
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]