< prev index next >

test/jdk/java/net/vthread/BlockingSocketOps.java

Print this page

 21  * questions.
 22  */
 23 
 24 /*
 25  * @test id=default
 26  * @bug 8284161 8372958
 27  * @summary Test virtual threads doing blocking I/O on java.net Sockets
 28  * @library /test/lib
 29  * @run junit BlockingSocketOps
 30  */
 31 
 32 /*
 33  * @test id=poller-modes
 34  * @requires (os.family == "linux") | (os.family == "mac")
 35  * @library /test/lib
 36  * @run junit/othervm -Djdk.pollerMode=1 BlockingSocketOps
 37  * @run junit/othervm -Djdk.pollerMode=2 BlockingSocketOps
 38  * @run junit/othervm -Djdk.pollerMode=3 BlockingSocketOps
 39  */
 40 


















 41 /*
 42  * @test id=no-vmcontinuations
 43  * @requires vm.continuations
 44  * @library /test/lib
 45  * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:-VMContinuations BlockingSocketOps
 46  */
 47 
 48 import java.io.Closeable;
 49 import java.io.IOException;
 50 import java.io.InputStream;
 51 import java.io.OutputStream;
 52 import java.net.DatagramPacket;
 53 import java.net.DatagramSocket;
 54 import java.net.InetAddress;
 55 import java.net.InetSocketAddress;
 56 import java.net.ServerSocket;
 57 import java.net.Socket;
 58 import java.net.SocketAddress;
 59 import java.net.SocketException;
 60 import java.net.SocketTimeoutException;

 21  * questions.
 22  */
 23 
 24 /*
 25  * @test id=default
 26  * @bug 8284161 8372958
 27  * @summary Test virtual threads doing blocking I/O on java.net Sockets
 28  * @library /test/lib
 29  * @run junit BlockingSocketOps
 30  */
 31 
 32 /*
 33  * @test id=poller-modes
 34  * @requires (os.family == "linux") | (os.family == "mac")
 35  * @library /test/lib
 36  * @run junit/othervm -Djdk.pollerMode=1 BlockingSocketOps
 37  * @run junit/othervm -Djdk.pollerMode=2 BlockingSocketOps
 38  * @run junit/othervm -Djdk.pollerMode=3 BlockingSocketOps
 39  */
 40 
 41 /*
 42  * @test id=io_uring
 43  * @requires os.family == "linux"
 44  * @library /test/lib
 45  * @run junit/othervm -Djdk.pollerMode=1 -Djdk.io_uring=true BlockingSocketOps
 46  * @run junit/othervm -Djdk.pollerMode=2 -Djdk.io_uring=true BlockingSocketOps
 47  * @run junit/othervm -Djdk.pollerMode=3 -Djdk.io_uring=true BlockingSocketOps
 48  * @run junit/othervm -Djdk.pollerMode=1 -Djdk.io_uring=true -Djdk.io_uring.sqpoll_idle=20 BlockingSocketOps
 49  * @run junit/othervm -Djdk.pollerMode=2 -Djdk.io_uring=true -Djdk.io_uring.sqpoll_idle=20 BlockingSocketOps
 50  * @run junit/othervm -Djdk.pollerMode=3 -Djdk.io_uring=true -Djdk.io_uring.sqpoll_idle=20 BlockingSocketOps
 51  * @run junit/othervm -Djdk.pollerMode=1 -Djdk.io_uring=true -Djdk.io_uring.read=true -Djdk.io_uring.write=true BlockingSocketOps
 52  * @run junit/othervm -Djdk.pollerMode=2 -Djdk.io_uring=true -Djdk.io_uring.read=true -Djdk.io_uring.write=true BlockingSocketOps
 53  * @run junit/othervm -Djdk.pollerMode=3 -Djdk.io_uring=true -Djdk.io_uring.read=true -Djdk.io_uring.write=true BlockingSocketOps
 54  * @run junit/othervm -Djdk.pollerMode=1 -Djdk.io_uring=true -Djdk.io_uring.read=true -Djdk.io_uring.write=true -Djdk.io_uring.sqpoll_idle=20 BlockingSocketOps
 55  * @run junit/othervm -Djdk.pollerMode=2 -Djdk.io_uring=true -Djdk.io_uring.read=true -Djdk.io_uring.write=true -Djdk.io_uring.sqpoll_idle=20 BlockingSocketOps
 56  * @run junit/othervm -Djdk.pollerMode=3 -Djdk.io_uring=true -Djdk.io_uring.read=true -Djdk.io_uring.write=true -Djdk.io_uring.sqpoll_idle=20 BlockingSocketOps
 57  */
 58 
 59 /*
 60  * @test id=no-vmcontinuations
 61  * @requires vm.continuations
 62  * @library /test/lib
 63  * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:-VMContinuations BlockingSocketOps
 64  */
 65 
 66 import java.io.Closeable;
 67 import java.io.IOException;
 68 import java.io.InputStream;
 69 import java.io.OutputStream;
 70 import java.net.DatagramPacket;
 71 import java.net.DatagramSocket;
 72 import java.net.InetAddress;
 73 import java.net.InetSocketAddress;
 74 import java.net.ServerSocket;
 75 import java.net.Socket;
 76 import java.net.SocketAddress;
 77 import java.net.SocketException;
 78 import java.net.SocketTimeoutException;
< prev index next >