< prev index next >

test/hotspot/jtreg/serviceability/tmtools/jstack/WaitNotifyThreadTest.java

Print this page
@@ -36,12 +36,12 @@
  import java.util.Iterator;
  import utils.*;
  
  public class WaitNotifyThreadTest {
  
-     private Object monitor = new Object();
-     private final String OBJECT = "a java.lang.Object";
+     private Object monitor = java.util.Objects.newIdentity();
+     private final String OBJECT = "a java.util.Objects$1";
      private final String OBJECT_WAIT = "java.lang.Object.wait";
      private final String RUN_METHOD = "WaitNotifyThreadTest$WaitThread.run";
  
      interface Action {
          void doAction(Thread thread);
< prev index next >