/art/test/1932-monitor-events-misc/src/art/ |
D | Test1932.java | 35 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 …]
|
D | Monitors.java | 26 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/ |
D | Test1931.java | 32 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 …]
|
D | Monitors.java | 26 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/ |
D | Test1933.java | 22 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()
|
D | Monitors.java | 26 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/ |
D | Test1930.java | 25 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 …]
|
D | Monitors.java | 26 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/ |
D | expected-stdout.txt | 9 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/ |
D | expected-stdout.txt | 24 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/ |
D | Monitors.java | 26 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/ |
D | Monitors.java | 26 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()
|
D | Test1934.java | 133 while (!Objects.equals(Monitors.getCurrentContendedMonitor(target), tst)) {} in testStopWait() 160 while (!Objects.equals(Monitors.getCurrentContendedMonitor(target), tst)) {} in testInterruptWait()
|
/art/runtime/ |
D | monitor_pool.h | 68 static void ReleaseMonitors(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitors() 135 void ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors);
|
D | monitor_pool.cc | 153 void MonitorPool::ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitorsToPool()
|
D | monitor.h | 455 typedef std::list<Monitor*, TrackingAllocator<Monitor*, kAllocatorTagMonitorList>> Monitors; typedef 465 Monitors list_ GUARDED_BY(monitor_list_lock_);
|
/art/test/ |
D | Android.bp | 935 "jvmti-common/Monitors.java",
|