Home
last modified time | relevance | path

Searched full:deadlock (Results 1 – 25 of 923) sorted by relevance

12345678910>>...37

/external/bcc/man/man8/
Ddeadlock.81 .TH deadlock 8 "2017-02-01" "USER COMMANDS"
3 deadlock \- Find potential deadlocks (lock order inversions)
6 .B deadlock [\-h] [\--binary BINARY] [\--dump-graph DUMP_GRAPH]
11 deadlock finds potential deadlocks in a running process. The program
22 inversion (potential deadlock). If the program finds a lock order inversion, the
76 .B deadlock 181
82 .B deadlock 181 --binary /lib/x86_64-linux-gnu/libpthread.so.0
91 .B deadlock 181 --binary /usr/local/bin/lockinversion
95 .B deadlock 181 --dump-graph graph.json
99 .B deadlock 181 --verbose
[all …]
/external/webrtc/sdk/android/native_unittests/stacktrace/
Dstacktrace_unittest.cc92 // This function should deadlock until Release() is called.
93 virtual void Deadlock() = 0;
95 // This function should release the thread stuck in Deadlock().
101 // Signaled when the deadlock region is entered.
104 // Defines an address range within the deadlock will occur.
107 // Signaled when the deadlock is done.
113 void Deadlock() override { event.Wait(rtc::Event::kForever); } in Deadlock() function in webrtc::test::__anon3114d6210111::RtcEventDeadlock
125 void Deadlock() override { MutexLock lock(&mutex_); } in Deadlock() function in webrtc::test::__anon3114d6210111::RtcCriticalSectionDeadlock
138 void Deadlock() override { in Deadlock() function in webrtc::test::__anon3114d6210111::SpinDeadlock
150 void Deadlock() override { sleep(1000000); } in Deadlock() function in webrtc::test::__anon3114d6210111::SleepDeadlock
[all …]
/external/toolchain-utils/go/patch/go-1.10.3/
Dgo5.patch9 + t.Skip("deadlock detection fails with external linker")
14 + t.Skip("deadlock detection fails with external linker")
19 + t.Skip("deadlock detection fails with external linker")
24 + t.Skip("deadlock detection fails with external linker")
29 + t.Skip("deadlock detection fails with external linker")
31 want := "no goroutines (main called runtime.Goexit) - deadlock!"
37 + t.Skip("deadlock detection fails with external linker")
39 want := "no goroutines (main called runtime.Goexit) - deadlock!"
45 + t.Skip("deadlock detection fails with external linker")
48 want := "fatal error: no goroutines (main called runtime.Goexit) - deadlock!"
[all …]
/external/toolchain-utils/go/patch/go-1.11.2/
Dgo5.patch9 + t.Skip("deadlock detection fails with external linker")
14 + t.Skip("deadlock detection fails with external linker")
19 + t.Skip("deadlock detection fails with external linker")
24 + t.Skip("deadlock detection fails with external linker")
29 + t.Skip("deadlock detection fails with external linker")
31 want := "no goroutines (main called runtime.Goexit) - deadlock!"
37 + t.Skip("deadlock detection fails with external linker")
39 want := "no goroutines (main called runtime.Goexit) - deadlock!"
45 + t.Skip("deadlock detection fails with external linker")
48 want := "fatal error: no goroutines (main called runtime.Goexit) - deadlock!"
[all …]
/external/toolchain-utils/go/patch/go-1.10.2/
Dgo5.patch1 runtime: deadlock detection does not work when using external linker.
7 want := "fatal error: all goroutines are asleep - deadlock!\n"
14 + t.Skip("deadlock detection fails with external linker")
19 + t.Skip("deadlock detection fails with external linker")
24 + t.Skip("deadlock detection fails with external linker")
29 + t.Skip("deadlock detection fails with external linker")
34 + t.Skip("deadlock detection fails with external linker")
36 want := "no goroutines (main called runtime.Goexit) - deadlock!"
52 + t.Skip("deadlock detection fails with external linker")
54 want := "no goroutines (main called runtime.Goexit) - deadlock!"
[all …]
/external/bcc/tools/
Ddeadlock_example.txt1 Demonstrations of deadlock.
13 inversion (potential deadlock). If the program finds a lock order inversion, the
28 For shared (read-write) mutexes, a deadlock requires a cycle in the wait
38 # ./deadlock.py 181
41 Potential Deadlock Detected!
177 This is output from a process that has a potential deadlock involving 4 mutexes
234 Note that an actual deadlock did not occur, although this mutex lock ordering
235 creates the possibility of a deadlock, and this is a hint to the programmer to
242 # ./deadlock.py 181 --binary /usr/local/bin/lockinversion
256 # ./deadlock.py 181 --binary /lib/x86_64-linux-gnu/libpthread.so.0
[all …]
Ddeadlock.py3 # deadlock Detects potential deadlocks (lock order inversions)
6 # USAGE: deadlock.py [-h] [--binary BINARY] [--dump-graph DUMP_GRAPH]
33 # For shared (read-write) mutexes, a deadlock requires a cycle in the wait
289 Potential Deadlock Detected!
318 print('----------------\nPotential Deadlock Detected!\n')
391 deadlock 181 # Analyze PID 181
393 deadlock 181 --binary /lib/x86_64-linux-gnu/libpthread.so.0
400 deadlock 181 --verbose
404 deadlock 181 --lock-symbols my_mutex_lock1,my_mutex_lock2 \\
409 deadlock 181 --dump-graph graph.json
[all …]
/external/compiler-rt/test/tsan/
Dmust_deadlock.cc1 // Test that the deadlock detector can find a deadlock that actually happened.
2 // Currently we will fail to report such a deadlock because we check for
20 // CHECK: ThreadSanitizer: lock-order-inversion (potential deadlock) in Thread()
31 fprintf(stderr, "This test is going to deadlock and die in 3 seconds\n"); in main()
Dmutex_cycle2.c5 // RUN: echo "deadlock:main" > %t.supp
7 // RUN: echo "deadlock:zzzz" > %t.supp
26 // CHECK: ThreadSanitizer: lock-order-inversion (potential deadlock) in main()
/external/angle/build/sanitizers/
Dtsan_suppressions.cc41 "deadlock:cc::VideoLayerImpl::WillDraw\n"
53 "deadlock:g_type_add_interface_static\n"
57 "deadlock:dbus::Bus::ShutdownAndBlock\n"
63 "deadlock:libGLX.so*\n"
66 "deadlock:libnvidia-glsi.so*\n"
91 "deadlock:GlobalSafepoint::EnterGlobalSafepointScope\n"
/external/cronet/build/sanitizers/
Dtsan_suppressions.cc41 "deadlock:cc::VideoLayerImpl::WillDraw\n"
53 "deadlock:g_type_add_interface_static\n"
57 "deadlock:dbus::Bus::ShutdownAndBlock\n"
63 "deadlock:libGLX.so*\n"
66 "deadlock:libnvidia-glsi.so*\n"
91 "deadlock:GlobalSafepoint::EnterGlobalSafepointScope\n"
/external/rust/crates/parking_lot/src/
Ddeadlock.rs1 //! \[Experimental\] Deadlock detection
12 //! use parking_lot::deadlock;
18 //! let deadlocks = deadlock::check_deadlock();
25 //! println!("Deadlock #{}", i);
37 pub use parking_lot_core::deadlock::check_deadlock;
38 pub(crate) use parking_lot_core::deadlock::{acquire_resource, release_resource};
48 // We need to serialize these tests since deadlock detection uses global state
52 use parking_lot_core::deadlock::check_deadlock; in check_deadlock()
Draw_mutex.rs8 use crate::{deadlock, util};
74 unsafe { deadlock::acquire_resource(self as *const _ as usize) }; in lock()
91 unsafe { deadlock::acquire_resource(self as *const _ as usize) }; in try_lock()
101 deadlock::release_resource(self as *const _ as usize); in unlock()
122 deadlock::release_resource(self as *const _ as usize); in unlock_fair()
157 unsafe { deadlock::acquire_resource(self as *const _ as usize) }; in try_lock_until()
174 unsafe { deadlock::acquire_resource(self as *const _ as usize) }; in try_lock_for()
327 unsafe { deadlock::release_resource(self as *const _ as usize) }; in bump_slow()
Dlib.rs28 pub mod deadlock; module
30 mod deadlock; module
32 // If deadlock detection is enabled, we cannot allow lock guards to be sent to
/external/guava/guava/src/com/google/common/util/concurrent/
DCycleDetectingLockFactory.java50 * ReentrantReadWriteLock} instances that detect potential deadlock by checking for cycles in lock
76 * example involving two locks and two threads, deadlock occurs when one thread acquires Lock A, and
107 * deadlock situation, and the appropriate Policy is executed.
110 * <p>Note that detection of potential deadlock does not necessarily indicate that deadlock will
122 * potential deadlock, this class treats {@code ReadWriteLock} instances as equivalent to
124 * (i.e. cycles that will not actually result in deadlock), it simplifies the algorithm and
170 * Encapsulates the action to be taken when a potential deadlock is encountered. Clients can use
180 * Called when a potential deadlock is encountered. Implementations can throw the given {@code
184 * {@code tryLock()} technically recovers from deadlock by eventually timing out, this behavior
199 * When potential deadlock is detected, this policy results in the throwing of the {@code
[all …]
/external/guava/android/guava/src/com/google/common/util/concurrent/
DCycleDetectingLockFactory.java50 * ReentrantReadWriteLock} instances that detect potential deadlock by checking for cycles in lock
76 * example involving two locks and two threads, deadlock occurs when one thread acquires Lock A, and
107 * deadlock situation, and the appropriate Policy is executed.
110 * <p>Note that detection of potential deadlock does not necessarily indicate that deadlock will
122 * potential deadlock, this class treats {@code ReadWriteLock} instances as equivalent to
124 * (i.e. cycles that will not actually result in deadlock), it simplifies the algorithm and
170 * Encapsulates the action to be taken when a potential deadlock is encountered. Clients can use
180 * Called when a potential deadlock is encountered. Implementations can throw the given {@code
184 * {@code tryLock()} technically recovers from deadlock by eventually timing out, this behavior
199 * When potential deadlock is detected, this policy results in the throwing of the {@code
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/
D2-1.c12 * This type of mutex doesn't detect deadlock. So a thread attempting to relock this mutex
22 * to interrupt the deadlock.
74 /* This lock will cause deadlock */ in main()
77 printf("Relock the mutex did not get deadlock\n"); in main()
/external/python/pybind11/tests/
Dtest_gil_scoped.py56 """Makes sure there is no GIL deadlock when running in a thread.
65 """Makes sure there is no GIL deadlock when running in a thread multiple times in parallel.
74 """Makes sure there is no GIL deadlock when running in a thread multiple times sequentially.
85 """Makes sure there is no GIL deadlock when using processes.
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSharedPreferences.java29 // Flush QueuedWork. This resolves the deadlock of calling 'apply' followed by 'commit'. in apply()
34 // Flush QueuedWork. This resolves the deadlock of calling 'apply' followed by 'commit'. in apply()
42 // This lock resolves the deadlock of when the main thread/looper is blocked until in commit()
/external/rust/crates/tokio-util/src/sync/cancellation_token/
Dtree_node.rs24 //! This is important for deadlock safety, as it is used for lock order.
35 //! # Deadlock safety
137 /// For more info look at *deadlock safety* and *invariant #2*.
165 // Deadlock safety: in with_locked_node_and_parent()
201 /// otherwise there is a potential for a deadlock as invariant #2 would be violated.
229 // Otherwise we would violate the lock order (see 'deadlock safety') as we in remove_child()
312 // This can't deadlock because the mutex we are already in cancel()
328 // This can't deadlock because the two mutexes we are already in cancel()
/external/tensorflow/tensorflow/python/kernel_tests/
Dcritical_section_test.py106 # run fn() in parallel, which is where the deadlock could
171 # just hit a deadlock if they do this. But at least it'll be easier
184 # deadlock we are ensuring we catch is:
189 # This would have caused a deadlock because executing `deadlocked` will
219 # Ensure there's no actual deadlock on to_execute.
229 # This would have caused a deadlock if not for logic in execute
311 # just hit a deadlock if they do this. But at least it'll be easier
/external/guice/core/src/com/google/inject/internal/
DCycleDetectingLock.java39 * <p>Otherwise, a map indicating threads involved in a potential deadlock are returned. Map is
53 * Wraps locks so they would never cause a deadlock. On each {@link
110 * factory would not deadlock.
157 // potential deadlock is found, we don't try to take this lock in lockOrDetectPotentialLocksCycle()
163 // this may be blocking, but we don't expect it to cause a deadlock in lockOrDetectPotentialLocksCycle()
177 // no deadlock is found, locking successful in lockOrDetectPotentialLocksCycle()
/external/python/cpython3/Lib/test/test_importlib/
Dtest_locks.py68 False on deadlock."""
92 # At least one of the threads detected a potential deadlock on its
94 # deadlock avoidance mechanism is conservative.
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/
D1-2.c25 * -> Can it cause / detect a deadlock? (attempt to lock a mutex the thread already owns).
275 /* We now are going to test the deadlock issue in main()
329 ("Results for deadlock issue:\n mutex 1 \t%s\t%s%i\n mutex 2 \t%s\t%s%i\n", in main()
330 tab_res[0][0] ? "deadlock" : "no deadlock", in main()
332 tab_res[1][0] ? "deadlock" : "no deadlock", in main()
D3-2.c30 * -> Can it cause / detect a deadlock? (attempt to lock a mutex the thread already owns).
268 /* We now are going to test the deadlock issue in main()
322 ("Results for deadlock issue:\n mutex 1 \t%s\t%s%i\n mutex 2 \t%s\t%s%i\n", in main()
323 tab_res[0][0] ? "deadlock" : "no deadlock", in main()
325 tab_res[1][0] ? "deadlock" : "no deadlock", in main()

12345678910>>...37