Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 82) sorted by relevance

1234

/art/test/2029-contended-monitors/
Dexpected.txt3 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/
DMain.java219 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/
DTestWatcher.java23 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/
DRacyMisbehavingLoader.java24 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()
DRacyLoader.java24 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/
DMonitors.java122 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/
DMonitors.java122 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/
DMonitors.java122 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/
DMonitors.java122 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 …]
DTest1930.java138 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/
DMonitors.java122 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 …]
DTest1931.java41 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/
DMonitors.java122 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/
Dmonitor_misc.cc39 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/
Dexpected.txt2 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/
DMain.java41 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/
DMain.java81 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/
DTest923.java52 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/
DMain.java31 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/
DTest1903.java20 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/
DTest1906.java20 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/
DTest1907.java22 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/
Dexpected.txt4 target_thread is sleeping in suspend without lock.
7 target_thread doesn't hold lock!
/art/test/1904-double-suspend/src/art/
DTest1904.java20 public static final Object lock = new Object(); field in Test1904
38 lock.wait(millis); in waitFor()
59 synchronized (lock) { in run()
/art/runtime/base/
Dmem_map_arena_pool.cc100 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

1234