/art/test/2029-contended-monitors/ |
D | expected.txt | 3 Hold time 2, shared lock 4 Hold time 20, shared lock 5 Hold time 200, shared lock 6 Hold time 2000, shared lock 7 Hold time 20000, shared lock 8 Hold time 200000, shared lock 9 Hold for 2 msecs while sleeping, shared lock 10 Hold for 2 msecs while sleeping, private lock
|
/art/test/004-ThreadStress/src-art/ |
D | Main.java | 219 private final Object lock; field in Main.TimedWait 221 public TimedWait(Object lock) { in TimedWait() argument 222 this.lock = lock; in TimedWait() 227 synchronized (lock) { in perform() 229 lock.wait(SLEEP_TIME, 0); in perform() 238 private final Object lock; field in Main.Wait 240 public Wait(Object lock) { in Wait() argument 241 this.lock = lock; in Wait() 246 synchronized (lock) { in perform() 248 lock.wait(); in perform() [all …]
|
/art/test/980-redefine-object/src-ex/ |
D | TestWatcher.java | 23 private static final ReentrantLock lock = new ReentrantLock(); field in TestWatcher 29 lock.lock(); in MonitorEnter() 35 if (!lock.isHeldByCurrentThread()) { in MonitorExit() 39 lock.unlock(); in MonitorExit()
|
/art/test/626-const-class-linking/src/ |
D | RacyMisbehavingLoader.java | 24 private Object lock = new Object(); field in RacyMisbehavingLoader 42 synchronized (lock) { in reportAfterLoading() 45 lock.notifyAll(); in reportAfterLoading() 82 synchronized (lock) { in syncWithOtherInstances() 88 lock.wait(); in syncWithOtherInstances() 94 lock.notifyAll(); in syncWithOtherInstances()
|
D | RacyLoader.java | 24 private Object lock = new Object(); field in RacyLoader 61 synchronized (lock) { in syncWithOtherInstances() 67 lock.wait(); in syncWithOtherInstances() 73 lock.notifyAll(); in syncWithOtherInstances()
|
/art/test/1934-jvmti-signal-thread/src/art/ |
D | Monitors.java | 122 public final NamedLock lock; field in Monitors.LockController 131 public LockController(NamedLock lock) { in LockController() argument 132 this(lock, 10 * 1000); in LockController() 134 public LockController(NamedLock lock, long timeout) { in LockController() argument 135 this.lock = lock; in LockController() 167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker() 190 synchronized (lock) { in DoLock() 208 lock.DoNotify(); in DoLock() 211 lock.DoNotifyAll(); in DoLock() 214 lock.DoWait(timeout); in DoLock() [all …]
|
/art/test/jvmti-common/ |
D | Monitors.java | 122 public final NamedLock lock; field in Monitors.LockController 131 public LockController(NamedLock lock) { in LockController() argument 132 this(lock, 10 * 1000); in LockController() 134 public LockController(NamedLock lock, long timeout) { in LockController() argument 135 this.lock = lock; in LockController() 167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker() 190 synchronized (lock) { in DoLock() 208 lock.DoNotify(); in DoLock() 211 lock.DoNotifyAll(); in DoLock() 214 lock.DoWait(timeout); in DoLock() [all …]
|
/art/test/1933-monitor-current-contended/src/art/ |
D | Monitors.java | 122 public final NamedLock lock; field in Monitors.LockController 131 public LockController(NamedLock lock) { in LockController() argument 132 this(lock, 10 * 1000); in LockController() 134 public LockController(NamedLock lock, long timeout) { in LockController() argument 135 this.lock = lock; in LockController() 167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker() 190 synchronized (lock) { in DoLock() 208 lock.DoNotify(); in DoLock() 211 lock.DoNotifyAll(); in DoLock() 214 lock.DoWait(timeout); in DoLock() [all …]
|
/art/test/1930-monitor-info/src/art/ |
D | Monitors.java | 122 public final NamedLock lock; field in Monitors.LockController 131 public LockController(NamedLock lock) { in LockController() argument 132 this(lock, 10 * 1000); in LockController() 134 public LockController(NamedLock lock, long timeout) { in LockController() argument 135 this.lock = lock; in LockController() 167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker() 190 synchronized (lock) { in DoLock() 208 lock.DoNotify(); in DoLock() 211 lock.DoNotifyAll(); in DoLock() 214 lock.DoWait(timeout); in DoLock() [all …]
|
D | Test1930.java | 138 public static void printPreLock(Object lock) { in printPreLock() argument 140 Thread.currentThread().getName(), Monitors.getObjectMonitorUsage(lock))); in printPreLock() 143 public static void executeLocked(Runnable r, Object lock) { in executeLocked() argument 144 printPreLock(lock); in executeLocked() 145 synchronized (lock) { in executeLocked()
|
/art/test/1931-monitor-events/src/art/ |
D | Monitors.java | 122 public final NamedLock lock; field in Monitors.LockController 131 public LockController(NamedLock lock) { in LockController() argument 132 this(lock, 10 * 1000); in LockController() 134 public LockController(NamedLock lock, long timeout) { in LockController() argument 135 this.lock = lock; in LockController() 167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker() 190 synchronized (lock) { in DoLock() 208 lock.DoNotify(); in DoLock() 211 lock.DoNotifyAll(); in DoLock() 214 lock.DoWait(timeout); in DoLock() [all …]
|
D | Test1931.java | 41 public static void handleMonitorEnter(Thread thd, Object lock) { in handleMonitorEnter() argument 42 System.out.println(thd.getName() + " contended-LOCKING " + lock); in handleMonitorEnter() 45 public static void handleMonitorEntered(Thread thd, Object lock) { in handleMonitorEntered() argument 46 System.out.println(thd.getName() + " LOCKED " + lock); in handleMonitorEntered() 48 public static void handleMonitorWait(Thread thd, Object lock, long timeout) { in handleMonitorWait() argument 49 System.out.println(thd.getName() + " start-monitor-wait " + lock + " timeout: " + timeout); in handleMonitorWait() 52 public static void handleMonitorWaited(Thread thd, Object lock, boolean timed_out) { in handleMonitorWaited() argument 53 System.out.println(thd.getName() + " monitor-waited " + lock + " timed_out: " + timed_out); in handleMonitorWaited()
|
/art/test/1932-monitor-events-misc/src/art/ |
D | Monitors.java | 122 public final NamedLock lock; field in Monitors.LockController 131 public LockController(NamedLock lock) { in LockController() argument 132 this(lock, 10 * 1000); in LockController() 134 public LockController(NamedLock lock, long timeout) { in LockController() argument 135 this.lock = lock; in LockController() 167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker() 190 synchronized (lock) { in DoLock() 208 lock.DoNotify(); in DoLock() 211 lock.DoNotifyAll(); in DoLock() 214 lock.DoWait(timeout); in DoLock() [all …]
|
/art/test/1932-monitor-events-misc/ |
D | monitor_misc.cc | 39 jobject lock) { in Java_art_Test1932_doNativeLockPrint() argument 51 jint res = env->MonitorEnter(lock); in Java_art_Test1932_doNativeLockPrint() 54 env->CallStaticVoidMethod(klass, print_state, lock, exc.get(), res); in Java_art_Test1932_doNativeLockPrint() 55 env->MonitorExit(lock); in Java_art_Test1932_doNativeLockPrint()
|
/art/test/1930-monitor-info/ |
D | expected.txt | 2 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testSingleThread], owner: <NULL>, entry… 5 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testSingleThread], owner: <NULL>, entry… 8 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwice], owner: <NULL>, entryC… 9 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwice], owner: main, entryCou… 12 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceNative], owner: <NULL>, … 13 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceNative], owner: main, en… 16 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceJN], owner: <NULL>, entr… 17 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceJN], owner: main, entryC… 20 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceNJ], owner: <NULL>, entr… 21 Pre-lock[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceNJ], owner: main, entryC… [all …]
|
/art/test/1959-redefine-object-instrument/src/ |
D | Main.java | 41 final Object lock = new Object(); in doTest() local 48 synchronized (lock) { in doTest() 52 lock.wait(Integer.MAX_VALUE - 1); in doTest() 69 synchronized(lock) { in doTest() 70 lock.notifyAll(); in doTest()
|
/art/test/123-compiler-regressions-mt/src/ |
D | Main.java | 81 private Object lock = new Object(); field in B17689750TestMonitor 87 synchronized (lock) { in thread1() 92 synchronized (lock) { in thread1() 100 synchronized (lock) { in thread2() 107 synchronized (lock) { in thread2()
|
/art/test/923-monitors/src/art/ |
D | Test923.java | 52 lock(id); in simpleTests() 56 lock(id); in simpleTests() 57 lock(id); in simpleTests() 66 lock(id); in simpleTests() 72 lock(id); in simpleTests() 78 lock(id); in simpleTests() 93 lock(id); in threadTests() 118 lock(id); in threadTests() 133 lock(id); in threadTests() 215 private static void lock(long id) { in lock() method in Test923
|
/art/test/2029-contended-monitors/src/ |
D | Main.java | 31 private Object lock; field in Main 49 private void holdFor(Object lock, int n) { in holdFor() argument 50 synchronized(lock) { in holdFor() 66 Object myLock = sharedLock ? lock : new Object(); in run() 82 Object myLock = sharedLock ? lock : new Object(); in run() 115 lock = new Object(); in runMultiple()
|
/art/test/1903-suspend-self/src/art/ |
D | Test1903.java | 20 public static final Object lock = new Object(); field in Test1903 45 lock.wait(millis); in waitFor() 65 synchronized (lock) { in run()
|
/art/test/1906-suspend-list-me-first/src/art/ |
D | Test1906.java | 20 public static final Object lock = new Object(); field in Test1906 27 lock.wait(millis); in waitFor() 41 synchronized (lock) { in run()
|
/art/test/1907-suspend-list-self-twice/src/art/ |
D | Test1907.java | 22 public static final Object lock = new Object(); field in Test1907 26 lock.wait(millis); in waitFor() 40 synchronized (lock) { in run()
|
/art/test/1943-suspend-raw-monitor-wait/ |
D | expected.txt | 4 target_thread is sleeping in suspend without lock. 7 target_thread doesn't hold lock!
|
/art/test/1904-double-suspend/src/art/ |
D | Test1904.java | 20 public static final Object lock = new Object(); field in Test1904 38 lock.wait(millis); in waitFor() 59 synchronized (lock) { in run()
|
/art/runtime/base/ |
D | mem_map_arena_pool.cc | 100 std::lock_guard<std::mutex> lock(lock_); in LockReclaimMemory() local 107 std::lock_guard<std::mutex> lock(lock_); in AllocArena() local 122 std::lock_guard<std::mutex> lock(lock_); in TrimMaps() local 130 std::lock_guard<std::mutex> lock(lock_); in GetBytesAllocated() local 159 std::lock_guard<std::mutex> lock(lock_); in FreeArenaChain() local
|