Hi Weijun, Are you available review this test fix?
Updated to use try-with-resources for server socket. Keep the client socket closure unchanged in order to keep this fix simple and easy to verify. http://cr.openjdk.java.net/~xuelei/8146387/webrev.01/ Thanks, Xuelei On 1/9/2016 7:06 PM, Xuelei Fan wrote: > Hi, > > Please review a test update for JDK-8146387: > > http://cr.openjdk.java.net/~xuelei/8146387/webrev.00/ > > In the test case, javax/net/ssl/SSLSession/SessionCacheSizeTests.java, > 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. > > Thanks, > Xuelei >