RFR 8170541: serviceability/jdwp/AllModulesCommandTest.java fails intermittently on Windows and Solaris

Daniil Titov daniil.x.titov at oracle.com
Tue Feb 20 17:24:17 UTC 2018


Please review the changes that fix intermittent failure of serviceability/jdwp/AllModulesCommandTest.java test.

The problem here is that for a large data the JDWP agent (socketTransport_writePacket() method in src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c ) sends 2 packets and in some cases only the first packet is received at the time when the test reads the reply from the JDWP agent. Since the test does not check that all data is received in the first packet the correlation between commands and replies became broken (the unread second packet is read by the next command and the reply for the next command is read by the next after next command and so on).

Bug: https://bugs.openjdk.java.net/browse/JDK-8170541 
Webrev: http://cr.openjdk.java.net/~dtitov/8170541/webrev.01 

The tests ran successfully with Mach5.


Best regards,
Daniil




More information about the serviceability-dev mailing list