Home
last modified time | relevance | path

Searched refs:Monitors (Results 1 – 17 of 17) sorted by relevance

/art/test/1932-monitor-events-misc/src/art/
DTest1932.java35 Monitors.setupMonitorEvents( in run()
43 Monitors.NamedLock.class, in run()
47 testLockUncontend(new Monitors.NamedLock("Lock testLockUncontend")); in run()
50 testLockThrowEnter(new Monitors.NamedLock("Lock testLockThrowEnter")); in run()
53 testLockThrowEntered(new Monitors.NamedLock("Lock testLockThrowEntered")); in run()
56 testLockThrowBoth(new Monitors.NamedLock("Lock testLockThrowBoth")); in run()
62 testThrowWait(new Monitors.NamedLock("Lock testThrowWait")); in run()
65 testThrowIllegalWait(new Monitors.NamedLock("Lock testThrowIllegalWait")); in run()
68 testThrowWaited(new Monitors.NamedLock("Lock testThrowWaited")); in run()
71 testThrowWaitedTimeout(new Monitors.NamedLock("Lock testThrowWaitedTimeout")); in run()
[all …]
DMonitors.java26 public class Monitors { class
243 if (IsLocked() && Objects.equals(runner, Monitors.getObjectMonitorUsage(lock).owner)) { in waitForLockToBeHeld()
256 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).notifyWaiters).contains(runner)); in waitForNotifySleep()
267 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).waiters).contains(runner)); in waitForContendedSleep()
/art/test/1931-monitor-events/src/art/
DTest1931.java32 private static Monitors.LockController CONTENTION_SUPPRESSED = null;
34 public static AutoCloseable SuppressContention(Monitors.LockController controller) { in SuppressContention()
75 Monitors.setupMonitorEvents( in run()
83 Monitors.NamedLock.class, in run()
87 testLock(new Monitors.NamedLock("Lock testLock")); in run()
90 testPark(new Monitors.NamedLock("Parking blocker object")); in run()
93 testWait(new Monitors.NamedLock("Lock testWait")); in run()
96 testTimedWait(new Monitors.NamedLock("Lock testTimedWait")); in run()
99 testTimedWaitTimeout(new Monitors.NamedLock("Lock testTimedWaitTimeout")); in run()
104 testUnlockedWait(new Monitors.NamedLock("Lock testUnlockedWait")); in run()
[all …]
DMonitors.java26 public class Monitors { class
243 if (IsLocked() && Objects.equals(runner, Monitors.getObjectMonitorUsage(lock).owner)) { in waitForLockToBeHeld()
256 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).notifyWaiters).contains(runner)); in waitForNotifySleep()
267 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).waiters).contains(runner)); in waitForContendedSleep()
/art/test/1933-monitor-current-contended/src/art/
DTest1933.java22 testNoContention(new Monitors.NamedLock("test testNoContention")); in run()
25 testNormalContendedMonitor(new Monitors.NamedLock("test testNormalContendedMonitor")); in run()
28 testNormalWaitMonitor(new Monitors.NamedLock("test testNormalWaitMonitor")); in run()
31 public static void testNormalWaitMonitor(final Monitors.NamedLock lk) throws Exception { in testNormalWaitMonitor()
32 final Monitors.LockController controller1 = new Monitors.LockController(lk); in testNormalWaitMonitor()
48 public static void testNormalContendedMonitor(final Monitors.NamedLock lk) throws Exception { in testNormalContendedMonitor()
49 final Monitors.LockController controller1 = new Monitors.LockController(lk); in testNormalContendedMonitor()
50 final Monitors.LockController controller2 = new Monitors.LockController(lk); in testNormalContendedMonitor()
61 public static void testNoContention(final Monitors.NamedLock lk) throws Exception { in testNoContention()
64 Monitors.getCurrentContendedMonitor(null)); in testNoContention()
DMonitors.java26 public class Monitors { class
243 if (IsLocked() && Objects.equals(runner, Monitors.getObjectMonitorUsage(lock).owner)) { in waitForLockToBeHeld()
256 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).notifyWaiters).contains(runner)); in waitForNotifySleep()
267 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).waiters).contains(runner)); in waitForContendedSleep()
/art/test/1930-monitor-info/src/art/
DTest1930.java25 Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testSingleThread"); in testSingleThread()
29 Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testSingleThread"); in testSingleThreadNative()
34 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testLockedTwice"); in testLockedTwice()
39 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testLockedTwiceNJ"); in testLockedTwiceNJ()
44 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testLockedTwiceJN"); in testLockedTwiceJN()
49 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testLockedTwiceNative"); in testLockedTwiceNative()
58 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testLockWait"); in testLockWait()
74 if (Arrays.asList(Monitors.getObjectMonitorUsage(lk).waiters).contains(t)) { in testLockWait()
92 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testNotifyWait"); in testNotifyWait()
140 Thread.currentThread().getName(), Monitors.getObjectMonitorUsage(lock))); in printPreLock()
[all …]
DMonitors.java26 public class Monitors { class
243 if (IsLocked() && Objects.equals(runner, Monitors.getObjectMonitorUsage(lock).owner)) { in waitForLockToBeHeld()
256 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).notifyWaiters).contains(runner)); in waitForNotifySleep()
267 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).waiters).contains(runner)); in waitForContendedSleep()
/art/test/1932-monitor-events-misc/
Dexpected-stdout.txt9 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
10 …Caused by: art.Monitors$TestException: throwing exception during monitorEnter of NamedLock[Lock te…
16 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
17 …Caused by: art.Monitors$TestException: throwing exception during monitorEntered of NamedLock[Lock …
24 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
25 …Caused by: art.Monitors$TestException: throwing exception during monitorEntered of NamedLock[Lock …
30 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
31 …Caused by: art.Monitors$TestException: throwing exception during MonitorWait of NamedLock[Lock tes…
36 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
37 …Caused by: art.Monitors$TestException: throwing exception during monitorWait of NamedLock[Lock tes…
[all …]
/art/test/1931-monitor-events/
Dexpected-stdout.txt24 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
25 Caused by: art.Monitors$TestException: Got an error while performing action TIMED_WAIT
30 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
31 Caused by: art.Monitors$TestException: Got an error while performing action WAIT
/art/test/jvmti-common/
DMonitors.java26 public class Monitors { class
243 if (IsLocked() && Objects.equals(runner, Monitors.getObjectMonitorUsage(lock).owner)) { in waitForLockToBeHeld()
256 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).notifyWaiters).contains(runner)); in waitForNotifySleep()
267 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).waiters).contains(runner)); in waitForContendedSleep()
/art/test/1934-jvmti-signal-thread/src/art/
DMonitors.java26 public class Monitors { class
243 if (IsLocked() && Objects.equals(runner, Monitors.getObjectMonitorUsage(lock).owner)) { in waitForLockToBeHeld()
256 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).notifyWaiters).contains(runner)); in waitForNotifySleep()
267 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).waiters).contains(runner)); in waitForContendedSleep()
DTest1934.java133 while (!Objects.equals(Monitors.getCurrentContendedMonitor(target), tst)) {} in testStopWait()
160 while (!Objects.equals(Monitors.getCurrentContendedMonitor(target), tst)) {} in testInterruptWait()
/art/runtime/
Dmonitor_pool.h68 static void ReleaseMonitors(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitors()
135 void ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors);
Dmonitor_pool.cc153 void MonitorPool::ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitorsToPool()
Dmonitor.h455 typedef std::list<Monitor*, TrackingAllocator<Monitor*, kAllocatorTagMonitorList>> Monitors; typedef
465 Monitors list_ GUARDED_BY(monitor_list_lock_);
/art/test/
DAndroid.bp935 "jvmti-common/Monitors.java",