< prev index next >

test/runtime/Thread/TestThreadDumpMonitorContention.java

Print this page

        

*** 26,36 **** * @bug 8036823 * @bug 8046287 * @summary Creates two threads contending for the same lock and checks * whether jstack reports "locked" by more than one thread. * ! * @library /testlibrary * @modules java.base/jdk.internal.misc * java.management * @run main/othervm TestThreadDumpMonitorContention */ --- 26,36 ---- * @bug 8036823 * @bug 8046287 * @summary Creates two threads contending for the same lock and checks * whether jstack reports "locked" by more than one thread. * ! * @library /test/lib * @modules java.base/jdk.internal.misc * java.management * @run main/othervm TestThreadDumpMonitorContention */
*** 41,51 **** import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; ! import jdk.test.lib.*; public class TestThreadDumpMonitorContention { // jstack tends to be closely bound to the VM that we are running // so use getTestJDKTool() instead of getCompileJDKTool() or even // getJDKTool() which can fall back to "compile.jdk". --- 41,53 ---- import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; ! import jdk.test.lib.process.ProcessTools; ! import jdk.test.lib.process.OutputAnalyzer; ! import jdk.test.lib.JDKToolFinder; public class TestThreadDumpMonitorContention { // jstack tends to be closely bound to the VM that we are running // so use getTestJDKTool() instead of getCompileJDKTool() or even // getJDKTool() which can fall back to "compile.jdk".
< prev index next >