/art/test/2029-contended-monitors/ |
D | expected-stdout.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 time 2, pause time 18, shared lock 10 Hold time 20, pause time 180, shared lock 11 Hold time 200, pause time 1800, shared lock 12 Hold time 2000, pause time 18000, shared lock [all …]
|
/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/165-lock-owner-proxy/ |
D | Android.bp | 3 // Build rules for ART run-test `165-lock-owner-proxy`. 16 name: "art-run-test-165-lock-owner-proxy", 21 ":art-run-test-165-lock-owner-proxy-expected-stdout", 22 ":art-run-test-165-lock-owner-proxy-expected-stderr", 28 name: "art-run-test-165-lock-owner-proxy-expected-stdout", 29 out: ["art-run-test-165-lock-owner-proxy-expected-stdout.txt"], 36 name: "art-run-test-165-lock-owner-proxy-expected-stderr", 37 out: ["art-run-test-165-lock-owner-proxy-expected-stderr.txt"],
|
/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/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/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/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 …]
|
/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/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/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/1930-monitor-info/ |
D | expected-stdout.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/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/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() 80 Object myLock = sharedLock ? lock : new Object(); in run() 97 Object myLock = sharedLock ? lock : new Object(); in run() 114 Object myLock = sharedLock ? lock : new Object(); in run() 147 lock = new Object(); in runMultiple()
|
/art/runtime/ |
D | mutator_gc_coord.md | 12 Logically, the collector and mutator share a reader-writer lock on the Java 13 heap and associated data structures. Mutators hold the lock in reader or shared mode 15 holds the lock in writer or exclusive mode while it needs the heap data 16 structures to be stable. However, this reader-writer lock has a very customized 26 mutator lock in shared mode, it is expected to regularly execute such a suspend 33 logically releases the mutator lock. When the garbage collector needs mutator 66 the "suspended" state given as an argument, logically releasing the mutator lock 72 released the mutator exclusive lock, and then returns to runnable state, 73 re-acquiring the mutator lock. 80 Mutator lock implementation [all …]
|
/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/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/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/test/1909-per-agent-tls/src/art/ |
D | Test1909.java | 44 public final Object lock; field in Test1909.ThreadWaiter 48 this.lock = new Object(); in ThreadWaiter() 51 synchronized (lock) { in ThreadWaiter() 53 this.lock.wait(); in ThreadWaiter() 66 synchronized (lock) { in cleanup() 68 lock.notifyAll(); in cleanup()
|