/openjdk7/jdk/src/share/classes/javax/crypto/ |
H A D | KeyGenerator.java | 128 private final Object lock = new Object(); field in class:KeyGenerator 299 synchronized (lock) { 313 synchronized (lock) {
|
H A D | Mac.java | 100 private final Object lock; field in class:Mac 114 lock = null; 121 lock = new Object(); 268 synchronized (lock) { 322 synchronized (lock) {
|
/openjdk7/hotspot/src/share/vm/code/ |
H A D | stubs.cpp | 66 Mutex* lock, const char* name) : _mutex(lock) { 112 if (_mutex != NULL) _mutex->lock(); 224 MutexLockerEx lock(_mutex); 232 MutexLockerEx lock(_mutex); 259 MutexLockerEx lock(_mutex); 65 StubQueue(StubInterface* stub_interface, int buffer_size, Mutex* lock, const char* name) argument
|
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | AbstractDataLine.java | 51 // the lock for synchronization 52 protected final Object lock = new Object(); field in class:AbstractDataLine 197 synchronized(lock) { 198 lock.notifyAll(); 229 synchronized(lock) { 230 lock.notifyAll();
|
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/ |
H A D | VirtualMachineManagerImpl.java | 53 private static final Object lock = new Object(); field in class:VirtualMachineManagerImpl 63 synchronized (lock) {
|
/openjdk7/jdk/src/solaris/native/com/sun/management/ |
H A D | SolarisOperatingSystem.c | 92 // Concurrence in this method is prevented by the lock in 179 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable 187 pthread_mutex_lock(&lock); 208 pthread_mutex_unlock(&lock);
|
/openjdk7/jdk/test/java/lang/management/ManagementFactory/ |
H A D | ThreadMXBeanProxy.java | 48 static Object lock = new Object(); field in class:ThreadMXBeanProxy 63 // wait until myThread acquires mutex and lock owner is set. 111 synchronized (lock) { 112 mutex.lock(); 150 String className = lock.getClass().getName(); 151 int hcode = System.identityHashCode(lock); 187 // Acquire the lock if state is zero 197 // Release the lock by setting state to zero 224 public void lock() { sync.acquire(1); } method in class:ThreadMXBeanProxy.Mutex
|
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/ |
H A D | Locks.java | 45 private static String getLockName(Object lock) { argument 46 if (lock == null) return null; 48 return lock.getClass().getName() + '@' + 49 Integer.toHexString(System.identityHashCode(lock)); 52 private static void checkBlockedObject(Thread t, Object lock, Thread owner, argument 56 String expectedLock = (lock != null ? getLockName(lock) : null); 59 if (lock != null) { 89 throw new RuntimeException("Owner of " + lock + " should be " + 147 // for lock obj 287 findOwnerInfo(ThreadInfo[] infos, String lock) argument 320 doCheck(ThreadInfo[] infos, String lock, long[] expectedThreads) argument [all...] |
H A D | MyOwnSynchronizer.java | 105 // Acquire the lock if state is zero 115 // Release the lock by setting state to zero 138 public void lock() { sync.acquire(1); } method in class:MyOwnSynchronizer.Mutex 159 mutex.lock();
|
H A D | ThreadStateTest.java | 29 * It also tests lock information returned by ThreadInfo. 55 private static Lock globalLock = new Lock("my lock"); 150 private static String getLockName(Object lock) { argument 151 if (lock == null) return null; 153 return lock.getClass().getName() + '@' + 154 Integer.toHexString(System.identityHashCode(lock)); 157 private static void checkLockInfo(Thread t, Thread.State state, Object lock, Thread owner) { argument 170 if (lock == null && info.getLockName() != null) { 172 " expected not to be blocked on any lock" + 175 String expectedLockName = getLockName(lock); [all...] |
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/ |
H A D | Lock.java | 27 * @summary Unit test for AsynchronousFileChannel#lock method 78 // slave VM opens file and acquires exclusive lock 79 slave.open(file.getPath()).lock(); 84 // this VM tries to acquire lock 85 // (lock should not be acquire until released by slave VM) 86 Future<FileLock> result = ch.lock(); 93 // slave VM releases lock 96 // this VM should now acquire lock 100 // slave VM acquires lock on range 101 slave.lock( 218 LockSlaveMirror lock() throws IOException { method in class:Lock.LockSlaveMirror 224 LockSlaveMirror lock(long position, long size, boolean shared) method in class:Lock.LockSlaveMirror [all...] |
/openjdk7/jdk/test/java/util/concurrent/locks/Lock/ |
H A D | FlakyMutex.java | 74 try { m.lock(); break; } 122 public void lock() { sync.acquire(1); } method in class:FlakyMutex
|
/openjdk7/jdk/test/java/util/concurrent/locks/ReentrantReadWriteLock/ |
H A D | Count.java | 27 * @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/javax/management/remote/mandatory/connection/ |
H A D | MultiThreadDeadLockTest.java | 215 private static int[] lock = new int[0]; field in class:MultiThreadDeadLockTest.StateMachine 218 synchronized (lock) { 221 lock.wait(); 231 synchronized (lock) { 237 synchronized (lock) { 239 lock.notifyAll();
|
/openjdk7/jdk/test/sun/java2d/SunGraphics2D/SourceClippingBlitTest/ |
H A D | SourceClippingBlitTest.java | 66 private static final Object lock = new Object(); field in class:SourceClippingBlitTest 101 synchronized (lock) { 104 lock.wait(); 163 synchronized (lock) { 165 lock.notifyAll();
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | AsynchronousFileChannelImpl.java | 83 closeLock.readLock().lock(); 113 public final Future<FileLock> lock(long position, method in class:AsynchronousFileChannelImpl 122 public final <A> void lock(long position, method in class:AsynchronousFileChannelImpl 160 * Adds region to lock table 166 closeLock.readLock().lock(); 190 * Releases the given file lock. 195 * Invoked by FileLockImpl to release the given file lock and remove it 196 * from the lock table.
|
/openjdk7/jdk/src/share/classes/sun/nio/cs/ |
H A D | StreamDecoder.java | 60 Object lock, 69 return new StreamDecoder(in, lock, Charset.forName(csn)); 75 Object lock, 78 return new StreamDecoder(in, lock, cs); 82 Object lock, 85 return new StreamDecoder(in, lock, dec); 116 synchronized (lock) { 146 synchronized (lock) { 182 synchronized (lock) { 189 synchronized (lock) { 59 forInputStreamReader(InputStream in, Object lock, String charsetName) argument 74 forInputStreamReader(InputStream in, Object lock, Charset cs) argument 81 forInputStreamReader(InputStream in, Object lock, CharsetDecoder dec) argument 229 StreamDecoder(InputStream in, Object lock, Charset cs) argument 236 StreamDecoder(InputStream in, Object lock, CharsetDecoder dec) argument [all...] |
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/ |
H A D | SinkChannelImpl.java | 53 private final Object lock = new Object(); field in class:SinkChannelImpl 56 // DO NOT invoke a blocking I/O operation while holding this lock! 160 synchronized (lock) { 183 synchronized (lock) {
|
H A D | SourceChannelImpl.java | 53 private final Object lock = new Object(); field in class:SourceChannelImpl 56 // DO NOT invoke a blocking I/O operation while holding this lock! 160 synchronized (lock) { 191 synchronized (lock) {
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/ |
H A D | Thread.java | 138 public boolean isLockOwned(Address lock) { argument 139 if (isInStack(lock)) return true;
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | Timer.java | 179 private transient final Lock lock = new ReentrantLock(); field in class:Timer 184 // access to this field is synchronized on getLock() lock. 573 getLock().lock(); 589 getLock().lock(); 621 return lock;
|
/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | Throwable.java | 653 synchronized (s.lock()) { 680 assert Thread.holdsLock(s.lock()); 730 abstract Object lock(); method in class:Throwable.PrintStreamOrWriter 743 Object lock() { method in class:Throwable.WrappedPrintStream 759 Object lock() { method in class:Throwable.WrappedPrintWriter
|
/openjdk7/jdk/src/share/classes/java/lang/management/ |
H A D | ThreadInfo.java | 99 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/share/classes/java/nio/file/spi/ |
H A D | FileSystemProvider.java | 78 // lock using when loading providers 79 private static final Object lock = new Object(); field in class:FileSystemProvider 158 synchronized (lock) {
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | ArrayBlockingQueue.java | 103 /** Main lock guarding all access */ 104 final ReentrantLock lock; field in class:ArrayBlockingQueue 150 * Call only when holding lock. 161 * Call only when holding lock. 176 * Call only when holding lock. 227 lock = new ReentrantLock(fair); 228 notEmpty = lock.newCondition(); 229 notFull = lock.newCondition(); 252 final ReentrantLock lock = this.lock; [all...] |