Code Review Request 8146669 Test SessionTimeOutTests fails intermittently

Xuelei Fan xuelei.fan at oracle.com
Wed Jan 13 09:23:53 UTC 2016


Hi,

Please review the intermittently test failure fix.

    http://cr.openjdk.java.net/~xuelei/8146669/webrev.00/

In the updated test case, an integer (createdPorts) is used to count the
server sockets.  Every server socket is created in a new thread.  The
access and update to createdPorts should be synchronized for multiple
threading safe.  Update to use AtomicInteger.getAndIncrement() so that
the access and update to createdPorts is atomic.

Thanks,
Xuelei



More information about the security-dev mailing list