8290531: Loom: Parallelize a few tests more deeply

Reviewed-by: rpressler, jpai, alanb
This commit is contained in:
Aleksey Shipilev 2022-08-01 14:20:27 +00:00
parent 226b8e680a
commit fcc119531a
3 changed files with 39 additions and 17 deletions
test/jdk
java
net/vthread
nio/channels/vthread
jdk/internal/vm/Continuation

@ -22,17 +22,24 @@
*/
/**
* @test
* @test id=default
* @bug 8284161
* @summary Basic tests of virtual threads doing blocking I/O with java.net sockets
* @enablePreview
* @library /test/lib
* @run testng/othervm/timeout=300 BlockingSocketOps
*/
/**
* @test id=indirect-register
* @summary Basic tests of virtual threads doing blocking I/O with java.net sockets
* @enablePreview
* @library /test/lib
* @run testng/othervm/timeout=300 -Djdk.useDirectRegister BlockingSocketOps
*/
/**
* @test
* @test id=no-vmcontinuations
* @requires vm.continuations
* @enablePreview
* @library /test/lib

@ -22,17 +22,24 @@
*/
/**
* @test
* @test id=default
* @bug 8284161
* @summary Basic tests of virtual threads doing blocking I/O with NIO channels
* @enablePreview
* @library /test/lib
* @run testng/othervm/timeout=300 BlockingChannelOps
*/
/**
* @test id=indirect-register
* @summary Basic tests of virtual threads doing blocking I/O with NIO channels
* @enablePreview
* @library /test/lib
* @run testng/othervm/timeout=300 -Djdk.useDirectRegister BlockingChannelOps
*/
/**
* @test
* @test id=no-vmcontinuations
* @requires vm.continuations
* @enablePreview
* @library /test/lib

@ -22,31 +22,39 @@
*/
/*
* @test
* @test id=default
* @key randomness
* @summary Fuzz tests for jdk.internal.vm.Continuation
* @requires vm.continuations
* @modules java.base/jdk.internal.vm
*
* @requires vm.flavor == "server" & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)
* @requires vm.opt.TieredCompilation == null | vm.opt.TieredCompilation == true
* @modules java.base java.base/jdk.internal.vm.annotation
* @modules java.base java.base/jdk.internal.vm.annotation java.base/jdk.internal.vm
* @library /test/lib
* @build java.base/java.lang.StackWalkerHelper
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
*
* @run main/othervm/timeout=300 --enable-preview -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. Fuzz
* @run main/othervm/timeout=300 --enable-preview -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. -XX:+PreserveFramePointer Fuzz
*
* @run main/othervm/timeout=300 --enable-preview -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* Fuzz
*/
// * @run main/othervm/timeout=3000 -XX:StartFlightRecording=filename=test.jfr,settings=profile -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. Fuzz
// Anything excluded or not compileonly is not compiled; see CompilerOracle::should_exclude
// @run driver jdk.test.lib.FileInstaller compilerDirectives.json compilerDirectives.json
// -XX:CompilerDirectivesFile=compilerDirectives.json
/*
* @test id=preserve-fp
* @key randomness
* @summary Fuzz tests for jdk.internal.vm.Continuation
* @requires vm.continuations
* @requires vm.flavor == "server" & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)
* @requires vm.opt.TieredCompilation == null | vm.opt.TieredCompilation == true
* @modules java.base java.base/jdk.internal.vm.annotation java.base/jdk.internal.vm
* @library /test/lib
* @build java.base/java.lang.StackWalkerHelper
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
*
* @run main/othervm/timeout=300 --enable-preview -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -XX:+PreserveFramePointer
* Fuzz
*/
import jdk.internal.vm.Continuation;
import jdk.internal.vm.ContinuationScope;