Searched defs:lock (Results 1 - 25 of 210) sorted by relevance

123456789

/openjdk7/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/
H A DcmsLockVerifier.cpp33 // or the CMS thread might hold the lock on behalf of the parallel
37 void CMSLockVerifier::assert_locked(const Mutex* lock, argument
46 if (lock == NULL) { // a "lock-free" structure, e.g. MUT, protected by CMS token
70 // Make sure that we are holding the associated lock.
71 assert_lock_strong(lock);
83 // Make sure that the VM or CMS thread holds lock on our behalf
87 assert(lock->owner() == VMThread::vm_thread() ||
88 lock->owner() == ConcurrentMarkSweepThread::cmst(),
H A DcmsLockVerifier.hpp33 // main GC thread or the CMS thread might hold the lock on behalf of
37 static void assert_locked(const Mutex* lock, const Mutex* p_lock1, const Mutex* p_lock2)
39 static void assert_locked(const Mutex* lock, const Mutex* p_lock) { argument
40 assert_locked(lock, p_lock, NULL);
42 static void assert_locked(const Mutex* lock) { argument
43 assert_locked(lock, NULL);
/openjdk7/hotspot/src/share/vm/memory/
H A DfreeBlockDictionary.cpp48 template <class Chunk> void FreeBlockDictionary<Chunk>::set_par_lock(Mutex* lock) { argument
49 _lock = lock;
H A DgcLocker.inline.hpp30 inline void GC_locker::lock() { function in class:GC_locker
49 // jni_lock call calls enter_critical under the lock so that the
50 // global lock count and per thread count are in agreement.
62 // jni_unlock call calls exit_critical under the lock so that
63 // the global lock count and per thread count are in agreement.
/openjdk7/jdk/test/sun/java2d/DirectX/OverriddenInsetsTest/
H A DOverriddenInsetsTest.java54 static final CountDownLatch lock = new CountDownLatch(1); field in class:OverriddenInsetsTest
125 lock.countDown();
137 lock.await();
/openjdk7/jdk/src/share/classes/sun/misc/
H A DLock.java29 * The Lock class provides a simple, useful interface to a lock.
39 * a lock, and one of the methods may throw an exception, you must be
40 * prepared to release the lock similarly to the following example:
46 * myLock.lock();
65 * Create a lock, which is initially not locked.
71 * Acquire the lock. If someone else has the lock, wait until it
73 * will not return until the lock has been acquired.
78 public final synchronized void lock() throws InterruptedException { method in class:Lock
86 * Release the lock
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/
H A DMonitorInfo.java32 private BasicLock lock; field in class:MonitorInfo
37 public MonitorInfo(OopHandle owner, BasicLock lock, boolean eliminated, boolean ownerIsScalarReplaced) { argument
60 public BasicLock lock() { return lock; } method in class:MonitorInfo
H A DBasicObjectLock.java57 public BasicLock lock() { return new BasicLock(addr.addOffsetTo(lockField.getOffset())); } method in class:BasicObjectLock
/openjdk7/jdk/src/share/classes/sun/awt/
H A DMutex.java32 public synchronized void lock() { method in class:Mutex
/openjdk7/jdk/src/share/classes/sun/awt/datatransfer/
H A DToolkitThreadBlockedHandler.java29 public void lock(); method in interface:ToolkitThreadBlockedHandler
/openjdk7/jdk/src/share/classes/java/lang/management/
H A DLockInfo.java33 * Information about a <em>lock</em>. A lock can be a built-in object monitor,
65 * @param className the fully qualified name of the class of the lock object.
67 * identity hash code} of the lock object.
81 LockInfo(Object lock) { argument
82 this.className = lock.getClass().getName();
83 this.identityHashCode = System.identityHashCode(lock);
87 * Returns the fully qualified name of the class of the lock object.
89 * @return the fully qualified name of the class of the lock object.
96 * Returns the identity hash code of the lock objec
[all...]
/openjdk7/jdk/test/java/awt/Focus/AppletInitialFocusTest/
H A DAppletInitialFocusTest1.java19 Object lock = new Object(); field in class:AppletInitialFocusTest1
32 synchronized (lock) {
46 synchronized (lock) {
61 synchronized (lock) {
/openjdk7/jdk/test/java/lang/ThreadGroup/
H A DStop.java33 private static final Object lock = new Object(); field in class:Stop
49 synchronized (lock) {
56 lock.notifyAll();
69 synchronized(lock){
71 lock.wait();
/openjdk7/jdk/test/java/rmi/server/UnicastRemoteObject/keepAliveDuringCall/
H A DKeepAliveDuringCall.java51 private Object lock = new Object(); field in class:KeepAliveDuringCall
56 synchronized (lock) {
58 lock.notifyAll();
63 synchronized (lock) {
65 lock.notifyAll();
92 synchronized (obj.lock) {
96 obj.lock.wait(TIMEOUT);
113 synchronized (obj.lock) {
/openjdk7/jdk/test/java/rmi/server/Unreferenced/finiteGCLatency/
H A DFiniteGCLatency.java52 private Object lock = new Object(); field in class:FiniteGCLatency
57 synchronized (lock) {
59 lock.notify();
88 synchronized (obj.lock) {
92 obj.lock.wait(TIMEOUT);
/openjdk7/jdk/test/java/rmi/server/Unreferenced/leaseCheckInterval/
H A DLeaseCheckInterval.java57 private Object lock = new Object(); field in class:LeaseCheckInterval
62 synchronized (lock) {
64 lock.notify();
94 synchronized (obj.lock) {
100 obj.lock.wait(TIMEOUT);
/openjdk7/jdk/test/java/rmi/server/Unreferenced/marshalledObjectGet/
H A DMarshalledObjectGet.java48 private Object lock = new Object(); field in class:MarshalledObjectGet
53 synchronized (lock) {
55 lock.notify();
83 synchronized (obj.lock) {
91 obj.lock.wait(TIMEOUT);
/openjdk7/jdk/test/javax/imageio/plugins/jpeg/
H A DConcurrentReadingTest.java52 static Object lock = new Object(); field in class:ConcurrentReadingTest
69 synchronized(lock) {
93 synchronized(lock) {
/openjdk7/jdk/test/sun/awt/AppContext/8012933/
H A DTest8012933.java38 final Object lock = new Object(); field in class:Test8012933
66 synchronized (lock) {
68 lock.notifyAll();
74 synchronized (lock) {
78 lock.wait();
/openjdk7/jdk/src/share/classes/sun/management/
H A DFileSystem.java38 private static final Object lock = new Object(); field in class:FileSystem
47 synchronized (lock) {
/openjdk7/jdk/src/share/classes/sun/net/ftp/
H A DFtpClientProvider.java48 private static final Object lock = new Object(); field in class:FtpClientProvider
138 synchronized (lock) {
/openjdk7/jdk/src/solaris/classes/sun/awt/motif/
H A DMToolkitThreadBlockedHandler.java41 public void lock() { method in class:MToolkitThreadBlockedHandler
/openjdk7/jdk/src/share/classes/java/nio/channels/spi/
H A DSelectorProvider.java71 private static final Object lock = new Object(); field in class:SelectorProvider
165 synchronized (lock) {
/openjdk7/jdk/src/share/classes/java/util/
H A DTimerTask.java40 final Object lock = new Object(); field in class:TimerTask
117 synchronized(lock) {
153 synchronized(lock) {
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DLock.java46 * <p>A lock is a tool for controlling access to a shared resource by
47 * multiple threads. Commonly, a lock provides exclusive access to a
48 * shared resource: only one thread at a time can acquire the lock and
49 * all access to the shared resource requires that the lock be
51 * a shared resource, such as the read lock of a {@link ReadWriteLock}.
54 * access to the implicit monitor lock associated with every object, but
55 * forces all lock acquisition and release to occur in a block-structured way:
67 * acquire the lock of node A, then node B, then release A and acquire
70 * allowing a lock to be acquired and released in different scopes,
81 * l.lock();
183 void lock(); method in interface:Lock
[all...]

Completed in 108 milliseconds

123456789