8038438: Review comments from 8034181
authorchegar
Wed, 26 Mar 2014 20:57:49 +0000
changeset 23584 0d6735c75825
parent 23583 1bee92aa2f1f
child 23585 e4412d1b53d3
8038438: Review comments from 8034181 Reviewed-by: alanb
jdk/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java
--- a/jdk/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java	Wed Mar 26 19:53:07 2014 +0000
+++ b/jdk/test/com/sun/nio/sctp/SctpChannel/ReceiveIntoDirect.java	Wed Mar 26 20:57:49 2014 +0000
@@ -23,7 +23,7 @@
 
 /* @test
  * @bug 8034181
- * @summary SIGBUS at Java_sun_nio_ch_SctpChannelImpl_receive0
+ * @summary SIGBUS in SctpChannelImpl receive
  * @author chegar
  */
 
@@ -49,6 +49,9 @@
     /* suitably small message to NOT overrun small buffers */
     final byte[] msgBytes =  "Hello".getBytes(US_ASCII);
 
+    /* number of client connections/combinations (accepted by the server) */
+    final int NUM_CONNECTIONS = 75;
+
     void test(String[] args) throws IOException {
         SocketAddress address = null;
         Server server;
@@ -178,7 +181,7 @@
         @Override
         public void run() {
             try {
-                for (int i=0; i<75; i++) {  // there are 75 client combinations
+                for (int i=0; i<NUM_CONNECTIONS; i++) {
                     SctpChannel sc = ssc.accept();
 
                     /* send a small message */