Searched refs:lock (Results 76 - 100 of 393) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/sun/misc/
H A DGC.java59 /* The lock object for the latencyTarget and daemon fields. The daemon
60 * thread, if it exists, waits on this lock for notification that the
64 private static Object lock = new LatencyLock(); field in class:GC
91 synchronized (lock) {
117 lock.wait(l - d);
151 * Must be invoked while holding the lock.
162 lock.notify();
183 * Must be invoked while holding the lock.
212 synchronized (lock) {
229 synchronized (lock) {
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/
H A DMutex.java32 public synchronized void lock() { method in class:Mutex
/openjdk7/jdk/src/share/classes/java/lang/management/
H A DThreadInfo.java99 private LockInfo lock; field in class:ThreadInfo
119 * @param lockOwner the thread holding the lock
120 * @param blockedCount Number of times blocked to enter a lock
121 * @param blockedTime Approx time blocked to enter a lock
122 * @param waitedCount Number of times waited on a lock
123 * @param waitedTime Approx time waited on a lock
144 * @param lockOwner the thread holding the lock
145 * @param blockedCount Number of times blocked to enter a lock
146 * @param blockedTime Approx time blocked to enter a lock
147 * @param waitedCount Number of times waited on a lock
[all...]
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCToolkitThreadBlockedHandler.java47 lock();
/openjdk7/jdk/test/java/util/concurrent/locks/ReentrantLock/
H A DSimpleReentrantLockLoops.java39 * @summary multiple threads using a single lock
77 private final ReentrantLock lock = new ReentrantLock(); field in class:SimpleReentrantLockLoops.ReentrantLockLoop
94 System.out.print("\t" + LoopHelpers.rightJustify(tpi) + " ns per lock");
111 lock.lock();
119 lock.unlock();
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXToolkitThreadBlockedHandler.java42 public void lock() { method in class:XToolkitThreadBlockedHandler
/openjdk7/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/
H A DcmsPermGen.cpp54 Mutex* lock = _gen->freelistLock(); local
55 bool lock_owned = lock->owned_by_self();
57 MutexUnlocker mul(lock);
/openjdk7/hotspot/src/share/vm/shark/
H A DsharkRuntime.cpp60 BasicObjectLock* lock))
64 Handle object(thread, lock->obj());
68 ObjectSynchronizer::fast_enter(object, lock->lock(), true, CHECK);
70 ObjectSynchronizer::slow_enter(object, lock->lock(), CHECK);
72 assert(Universe::heap()->is_in_reserved_or_null(lock->obj()), "should be");
76 BasicObjectLock* lock))
77 Handle object(thread, lock->obj());
79 if (lock
[all...]
/openjdk7/jdk/src/windows/native/sun/windows/
H A DHashtable.h87 CriticalSection lock; member in class:Hashtable
128 CriticalSection::Lock l(lock);
137 CriticalSection::Lock l(lock);
/openjdk7/hotspot/src/share/vm/opto/
H A Dlocknode.cpp87 // Is BoxLock node used for one simple lock region (same box and obj)?
89 LockNode* lock = NULL; local
96 // Check lock's box since box could be referenced by Lock's debug info.
100 if (lock == NULL) {
101 lock = alock->as_Lock();
103 } else if (lock != alock->as_Lock()) {
114 // Verify that FastLock and Safepoint reference only this lock region.
130 *unique_lock = lock;
154 // Create a counter which counts the number of times this lock is acquired
176 // the obj pointer & the address of the stack slot pair used for the lock
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jmx/mbeanserver/
H A DRepository.java99 * We use a global reentrant read write lock to protect the repository.
104 private final ReentrantReadWriteLock lock; field in class:Repository
326 lock = new ReentrantReadWriteLock(fairLock);
346 lock.readLock().lock();
361 lock.readLock().unlock();
376 * lock, when it has determined that the {@code object}
416 lock.writeLock().lock();
445 lock
[all...]
/openjdk7/jdk/test/java/util/concurrent/locks/ReentrantReadWriteLock/
H A DCount.java27 * @summary Recursive lock invariant sanity checks
40 void lock(Lock lock) { argument
43 case 0: lock.lock(); break;
44 case 1: lock.lockInterruptibly(); break;
45 case 2: check(lock.tryLock()); break;
46 case 3: check(lock.tryLock(45, TimeUnit.MINUTES)); break;
78 lock(rwl.readLock());
123 lock(r
[all...]
/openjdk7/jdk/test/java/rmi/activation/Activatable/restartCrashedService/
H A DRestartCrashedService.java48 private static Object lock = new Object(); field in class:RestartCrashedService
81 synchronized (lock) {
83 lock.notify();
180 synchronized (lock) {
182 lock.wait(5000);
202 synchronized (lock) {
204 lock.wait(5000);
/openjdk7/jdk/test/java/rmi/activation/Activatable/restartService/
H A DRestartService.java47 private static Object lock = new Object(); field in class:RestartService
80 synchronized (lock) {
82 lock.notify();
185 synchronized (lock) {
187 lock.wait(5000);
207 synchronized (lock) {
209 lock.wait(5000);
/openjdk7/jdk/src/macosx/native/com/sun/media/sound/
H A DPLATFORM_API_MacOSX_MidiUtils.c624 /* queue->lock while the condition variabale reference is stored as handle */
647 void MIDI_WaitOnConditionVariable(void* cond, void* lock) { argument
648 if (cond && lock) {
649 pthread_mutex_lock(lock);
650 pthread_cond_wait((pthread_cond_t*) cond, (pthread_mutex_t*) lock);
651 pthread_mutex_unlock(lock);
675 pthread_mutex_t* lock = (pthread_mutex_t*) malloc(sizeof(pthread_mutex_t)); local
676 pthread_mutex_init(lock, NULL);
678 return (void *)lock;
681 void MIDI_DestroyLock(void* lock) { argument
689 MIDI_Lock(void* lock) argument
695 MIDI_Unlock(void* lock) argument
[all...]
/openjdk7/hotspot/src/share/vm/runtime/
H A DmutexLocker.hpp45 extern Mutex* Patching_lock; // a lock used to guard code patching of compiled code
46 extern Monitor* SystemDictionary_lock; // a lock on the system dictonary
47 extern Mutex* PackageTable_lock; // a lock on the class loader package table
48 extern Mutex* CompiledIC_lock; // a lock used to guard compiled IC patching and access
49 extern Mutex* InlineCacheBuffer_lock; // a lock used to guard the InlineCacheBuffer
50 extern Mutex* VMStatistic_lock; // a lock used to guard statistics count increment
51 extern Mutex* JNIGlobalHandle_lock; // a lock on creating JNI global handles
52 extern Mutex* JNIHandleBlockFreeList_lock; // a lock on the JNI handle block free list
53 extern Mutex* JNICachedItableIndex_lock; // a lock on caching an itable index during JNI invoke
54 extern Mutex* JmethodIdCreation_lock; // a lock o
[all...]
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DFileLockTable.java40 * Creates and returns a file lock table for a channel that is connected to
51 * Adds a file lock to the table.
53 * @throws OverlappingFileLockException if the file lock overlaps
54 * with an existing file lock in the table
59 * Remove an existing file lock from the table.
71 * Replaces an existing file lock in the table.
78 * A file lock table that is over a system-wide map of all file locks.
85 * SharedFileLockTable uses a list of file lock references to avoid keeping the
136 // we successfully created the key so we add the file lock
148 // and add the new lock t
[all...]
/openjdk7/jdk/src/share/classes/java/util/prefs/
H A DAbstractPreferences.java178 * An object whose monitor is used to lock this node. This object
182 * holds a lock on a descendant of that node.
184 protected final Object lock = new Object(); field in class:AbstractPreferences
225 * obtains this preference node's lock, checks that the node
247 synchronized(lock) {
262 * the case. Then it obtains this preference node's lock,
281 synchronized(lock) {
299 * <p>This implementation obtains this preference node's lock,
310 synchronized(lock) {
323 * <p>This implementation obtains this preference node's lock,
[all...]
/openjdk7/jdk/test/java/rmi/activation/Activatable/restartLatecomer/
H A DRestartLatecomer.java48 private static Object lock = new Object(); field in class:RestartLatecomer
84 synchronized (lock) {
87 lock.wait(5000);
102 synchronized (lock) {
119 synchronized (lock) {
121 lock.notifyAll();
/openjdk7/jdk/test/javax/management/remote/mandatory/notif/
H A DUnexpectedNotifTest.java136 synchronized (lock) {
139 lock.wait(1000);
148 synchronized (lock) {
170 synchronized(lock) {
172 lock.notifyAll();
237 private static int[] lock = new int[0]; field in class:UnexpectedNotifTest
/openjdk7/jdk/src/share/classes/java/lang/ref/
H A DReference.java99 * must acquire this lock at the beginning of each collection cycle. It is
100 * therefore critical that any code holding this lock complete as quickly
104 private static Lock lock = new Lock(); field in class:Reference
109 * them. This list is protected by the above lock object.
125 synchronized (lock) {
133 lock.wait();
/openjdk7/jdk/src/windows/classes/sun/java2d/d3d/
H A DD3DRenderQueue.java52 // no need to lock, noone has reference to this instance yet
79 theInstance.lock();
96 rq.lock();
120 rq.lock();
136 // assert lock.isHeldByCurrentThread();
141 // assert lock.isHeldByCurrentThread();
148 // assert lock.isHeldByCurrentThread();
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DTryLock.java66 fl = fc.lock(0, fc.size(), shared);
89 fl = fc.lock(0, fc.size(), shared);
112 fl = fc.lock(0, fc.size(), shared);
/openjdk7/jdk/test/java/nio/charset/coders/
H A DStreamTimeout.java40 private static Object lock = new Object(); field in class:StreamTimeout
42 synchronized(lock) {
44 lock.wait(millisec);
/openjdk7/jdk/test/javax/imageio/plugins/jpeg/
H A DConcurrentWritingTest.java51 private static Object lock = new Object(); field in class:ConcurrentWritingTest
65 synchronized(lock) {
89 synchronized(lock) {

Completed in 283 milliseconds

1234567891011>>