< prev index next >

test/jdk/jdk/jfr/event/runtime/TestJavaMonitorWaitTimeOut.java

Print this page
rev 51054 : imported patch 9000013-aixDisableJFR-requires.patch


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.event.runtime;
  27 
  28 import java.util.List;
  29 
  30 import jdk.jfr.Recording;
  31 import jdk.jfr.consumer.RecordedClass;
  32 import jdk.jfr.consumer.RecordedEvent;
  33 import jdk.jfr.consumer.RecordedThread;
  34 import jdk.test.lib.Asserts;
  35 import jdk.test.lib.jfr.EventNames;
  36 import jdk.test.lib.jfr.Events;
  37 
  38 /*
  39  * @test
  40  * @key jfr

  41  * @library /test/lib
  42  * @run main/othervm jdk.jfr.event.runtime.TestJavaMonitorWaitTimeOut
  43  */
  44 public class TestJavaMonitorWaitTimeOut {
  45 
  46     static final class Lock {
  47 
  48     }
  49 
  50     private static final String THREAD_NAME = "Notifier";
  51 
  52     static class Notifierhread extends Thread {
  53         private final Object lock;
  54 
  55         Notifierhread(Object lock) {
  56             super(THREAD_NAME);
  57             this.lock = lock;
  58         }
  59 
  60         public void run() {




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.event.runtime;
  27 
  28 import java.util.List;
  29 
  30 import jdk.jfr.Recording;
  31 import jdk.jfr.consumer.RecordedClass;
  32 import jdk.jfr.consumer.RecordedEvent;
  33 import jdk.jfr.consumer.RecordedThread;
  34 import jdk.test.lib.Asserts;
  35 import jdk.test.lib.jfr.EventNames;
  36 import jdk.test.lib.jfr.Events;
  37 
  38 /**
  39  * @test
  40  * @key jfr
  41  * @requires vm.hasJFR
  42  * @library /test/lib
  43  * @run main/othervm jdk.jfr.event.runtime.TestJavaMonitorWaitTimeOut
  44  */
  45 public class TestJavaMonitorWaitTimeOut {
  46 
  47     static final class Lock {
  48 
  49     }
  50 
  51     private static final String THREAD_NAME = "Notifier";
  52 
  53     static class Notifierhread extends Thread {
  54         private final Object lock;
  55 
  56         Notifierhread(Object lock) {
  57             super(THREAD_NAME);
  58             this.lock = lock;
  59         }
  60 
  61         public void run() {


< prev index next >