Skip to content

Commit

Permalink
change the format of the testcase file
Browse files Browse the repository at this point in the history
  • Loading branch information
jia-wei-tang committed Aug 5, 2024
1 parent 80b139e commit f15cbea
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,26 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.lang.instrument.Instrumentation;
import java.security.ProtectionDomain;
import jdk.test.lib.thread.VThreadPinner;

/*
* @test
* @summary javaagent + tracePinnedThreads will cause jvm crash/ run into deadlock when the virtual thread is pinned
* @library /test/lib
* @requires vm.continuations
* @requires vm.jvmti
* @modules java.base/java.lang:+open
* @build TestPinCaseWithCFLH
* @run driver jdk.test.lib.util.JavaAgentBuilder
* TestPinCaseWithCFLH TestPinCaseWithCFLH.jar
* @compile TestPinCaseWithCFLH.java
* @run driver jdk.test.lib.util.JavaAgentBuilder
* TestPinCaseWithCFLH TestPinCaseWithCFLH.jar
* @run main/othervm/timeout=100 -Djdk.virtualThreadScheduler.maxPoolSize=1
* -Djdk.tracePinnedThreads=full --enable-native-access=ALL-UNNAMED
* -javaagent:TestPinCaseWithCFLH.jar TestPinCaseWithCFLH
*/
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.lang.instrument.Instrumentation;
import java.security.ProtectionDomain;
import jdk.test.lib.thread.VThreadPinner;

public class TestPinCaseWithCFLH {

Expand Down

0 comments on commit f15cbea

Please sign in to comment.