/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | TryLock.java | 57 public static void test1(boolean shared, boolean trylock) throws Exception { argument 64 fl = fc.tryLock(0, fc.size(), shared); 66 fl = fc.lock(0, fc.size(), shared); 67 if (!shared) 70 if (shared) 80 public static void test2(boolean shared, boolean trylock) throws Exception { argument 87 fl = fc.tryLock(0, fc.size(), shared); 89 fl = fc.lock(0, fc.size(), shared); 90 if (shared) 93 if (!shared) 103 test3(boolean shared, boolean trylock) argument [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/gc_implementation/shared/ |
H A D | MutableSpace.java | 25 package sun.jvm.hotspot.gc_implementation.shared;
|
H A D | ImmutableSpace.java | 25 package sun.jvm.hotspot.gc_implementation.shared;
|
/openjdk7/jdk/src/share/classes/java/nio/channels/ |
H A D | FileLock.java | 47 * <p> A file lock is either <i>exclusive</i> or <i>shared</i>. A shared lock 49 * exclusive lock, but does allow them to acquire overlapping shared locks. An 54 * <p> Whether a lock is exclusive or shared may be determined by invoking its 55 * {@link #isShared isShared} method. Some platforms do not support shared 56 * locks, in which case a request for a shared lock is automatically converted 124 private final boolean shared; field in class:FileLock 140 * @param shared 141 * <tt>true</tt> if this lock is shared, 148 long position, long size, boolean shared) 147 FileLock(FileChannel channel, long position, long size, boolean shared) argument 185 FileLock(AsynchronousFileChannel channel, long position, long size, boolean shared) argument [all...] |
H A D | AsynchronousFileChannel.java | 82 * a system-dependent default thread pool that may be shared with other 417 * <p> Some operating systems do not support shared locks, in which case a 418 * request for a shared lock is automatically converted into a request for 419 * an exclusive lock. Whether the newly-acquired lock is shared or 433 * @param shared 434 * {@code true} to request a shared lock, in which case this 450 * If {@code shared} is true but this channel was not opened for reading 452 * If {@code shared} is false but this channel was not opened for writing 456 boolean shared, 509 * @param shared 454 lock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument 527 lock(long position, long size, boolean shared) argument 601 tryLock(long position, long size, boolean shared) argument [all...] |
H A D | FileChannel.java | 949 * <p> Some operating systems do not support shared locks, in which case a 950 * request for a shared lock is automatically converted into a request for 951 * an exclusive lock. Whether the newly-acquired lock is shared or 967 * @param shared 968 * <tt>true</tt> to request a shared lock, in which case this 996 * If <tt>shared</tt> is <tt>true</tt> this channel was not 1000 * If <tt>shared</tt> is <tt>false</tt> but this channel was not 1010 public abstract FileLock lock(long position, long size, boolean shared) argument 1076 * <p> Some operating systems do not support shared locks, in which case a 1077 * request for a shared loc 1121 tryLock(long position, long size, boolean shared) argument [all...] |
/openjdk7/jdk/src/solaris/native/java/util/ |
H A D | FileSystemPreferences.c | 63 jclass thisclass, jstring java_fname, jint permission, jboolean shared) { 74 if (shared == JNI_TRUE) { 80 if (shared == JNI_TRUE) { 62 Java_java_util_prefs_FileSystemPreferences_lockFile0(JNIEnv *env, jclass thisclass, jstring java_fname, jint permission, jboolean shared) argument
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftLowFrequencyOscillator/ |
H A D | TestProcessControlLogic.java | 39 private static void testLFO(boolean shared, int instance, float freq, float delay, argument 42 shared?TestProcessControlLogic.lfo:new SoftLowFrequencyOscillator();
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | FileLockImpl.java | 36 FileLockImpl(FileChannel channel, long position, long size, boolean shared) argument 38 super(channel, position, size, shared); 41 FileLockImpl(AsynchronousFileChannel channel, long position, long size, boolean shared) argument 43 super(channel, position, size, shared);
|
H A D | FileDispatcher.java | 44 boolean shared) throws IOException; 43 lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument
|
H A D | AsynchronousFileChannelImpl.java | 108 boolean shared, 115 boolean shared) 118 return implLock(position, size, shared, null, null); 124 boolean shared, 130 implLock(position, size, shared, attachment, handler); 162 protected final FileLockImpl addToFileLockTable(long position, long size, boolean shared) { argument 176 fli = new FileLockImpl(this, position, size, shared); 106 implLock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument 113 lock(long position, long size, boolean shared) argument 122 lock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument
|
H A D | SimpleAsynchronousFileChannelImpl.java | 176 final boolean shared, 180 if (shared && !reading) 182 if (!shared && !writing) 186 final FileLockImpl fli = addToFileLockTable(position, size, shared); 207 n = nd.lock(fdObj, true, position, size, shared); 244 public FileLock tryLock(long position, long size, boolean shared) argument 247 if (shared && !reading) 249 if (!shared && !writing) 253 FileLockImpl fli = addToFileLockTable(position, size, shared); 263 n = nd.lock(fdObj, false, position, size, shared); 174 implLock(final long position, final long size, final boolean shared, final A attachment, final CompletionHandler<FileLock,? super A> handler) argument [all...] |
H A D | FileChannelImpl.java | 1001 public FileLock lock(long position, long size, boolean shared) argument 1005 if (shared && !readable) 1007 if (!shared && !writable) 1009 FileLockImpl fli = new FileLockImpl(this, position, size, shared); 1021 n = nd.lock(fd, true, position, size, shared); 1025 assert shared; 1046 public FileLock tryLock(long position, long size, boolean shared) argument 1050 if (shared && !readable) 1052 if (!shared && !writable) 1054 FileLockImpl fli = new FileLockImpl(this, position, size, shared); [all...] |
/openjdk7/jdk/src/windows/native/sun/nio/ch/ |
H A D | WindowsAsynchronousFileChannelImpl.c | 97 jlong pos, jlong size, jboolean shared, jlong ov) 105 DWORD flags = (shared == JNI_TRUE) ? 0 : LOCKFILE_EXCLUSIVE_LOCK; 96 Java_sun_nio_ch_WindowsAsynchronousFileChannelImpl_lockFile(JNIEnv *env, jobject this, jlong handle, jlong pos, jlong size, jboolean shared, jlong ov) argument
|
H A D | FileDispatcherImpl.c | 387 jboolean shared) 403 if (shared == JNI_FALSE) { 385 Java_sun_nio_ch_FileDispatcherImpl_lock0(JNIEnv *env, jobject this, jobject fdo, jboolean block, jlong pos, jlong size, jboolean shared) argument
|
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/ |
H A D | Lock.java | 224 LockSlaveMirror lock(long position, long size, boolean shared) argument 227 sendCommand(LOCK_CMD, position + "," + size + "," + shared); 327 boolean shared = Boolean.parseBoolean(values[2]); 328 fl = fc.lock(position, size, shared);
|
/openjdk7/jdk/src/solaris/native/sun/nio/ch/ |
H A D | FileDispatcherImpl.c | 177 jboolean shared) 191 if (shared == JNI_TRUE) { 175 Java_sun_nio_ch_FileDispatcherImpl_lock0(JNIEnv *env, jobject this, jobject fdo, jboolean block, jlong pos, jlong size, jboolean shared) argument
|
/openjdk7/jdk/src/windows/classes/sun/nio/ch/ |
H A D | FileDispatcherImpl.java | 100 boolean shared) throws IOException 102 return lock0(fd, blocking, pos, size, shared); 152 long size, boolean shared) throws IOException; 99 lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument 151 lock0(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument
|
H A D | WindowsAsynchronousFileChannelImpl.java | 295 final boolean shared, 299 if (shared && !reading) 301 if (!shared && !writing) 305 FileLockImpl fli = addToFileLockTable(position, size, shared); 342 public FileLock tryLock(long position, long size, boolean shared) argument 345 if (shared && !reading) 347 if (!shared && !writing) 351 final FileLockImpl fli = addToFileLockTable(position, size, shared); 359 int res = nd.lock(fdObj, false, position, size, shared); 750 boolean shared, lon 293 implLock(final long position, final long size, final boolean shared, A attachment, final CompletionHandler<FileLock,? super A> handler) argument 749 lockFile(long handle, long position, long size, boolean shared, long overlapped) argument [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/ |
H A D | ListBuffer.java | 67 public boolean shared; field in class:ListBuffer 79 shared = false; 115 shared = false; 130 if (shared) copy(); 166 shared = true;
|
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/ |
H A D | FileDispatcherImpl.java | 88 boolean shared) throws IOException 90 return lock0(fd, blocking, pos, size, shared); 140 long size, boolean shared) throws IOException; 87 lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument 139 lock0(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/code/ |
H A D | Scope.java | 47 private int shared; field in class:Scope 132 shared++; 146 /** Remove all entries of this scope from its table, if shared 150 Assert.check(shared == 0); 159 Assert.check(next.shared > 0); 160 next.shared--; 170 Assert.check(shared == 0); 175 Assert.check(s == this || s.shared != 0); 188 // We don't need to update nelems for shared inherited scopes, 196 Assert.check(shared [all...] |
/openjdk7/jdk/src/solaris/classes/java/util/prefs/ |
H A D | FileSystemPreferences.java | 719 boolean shared; 722 shared = false; /* use exclusive lock for user prefs */ 725 otherwise use shared lock. */ 726 shared = !isSystemRootWritable; 729 if (!lockFile(shared)) 893 private boolean lockFile(boolean shared) throws SecurityException{ argument 902 result = lockFile0(lockFile.getCanonicalPath(), perm, shared); 951 lockFile0(String fileName, int permission, boolean shared); argument
|
/openjdk7/jdk/src/share/transport/shmem/ |
H A D | shmemBase.c | 37 * This is the base shared memory transport implementation that is used 45 /* shared memory seg and prefix for other IPC */ 65 SHMEM_ASSERT((stream->shared->readOffset < SHARED_BUFFER_SIZE) \ 66 && (stream->shared->readOffset >= 0)); \ 67 SHMEM_ASSERT((stream->shared->writeOffset < SHARED_BUFFER_SIZE) \ 68 && (stream->shared->writeOffset >= 0)); \ 72 * Transports are duplex, so carve the shared memory into "streams", 91 SharedListener *shared; member in struct:SharedMemoryTransport 95 * Access must be syncronized. Holds one shared 109 * The two shared stream 126 SharedStream *shared; member in struct:Stream 147 SharedMemory *shared; member in struct:SharedMemoryConnection 941 SharedStream *shared = stream->shared; local 966 SharedStream *shared = stream->shared; local 991 SharedStream *shared = stream->shared; local 1063 SharedStream *shared = stream->shared; local [all...] |
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | Calendar.java | 820 * <code>True</code> if zone references to a shared TimeZone object. 2096 // If the TimeZone object is shared by other Calendar instances, then 2113 * Sets the sharedZone flag to <code>shared</code>. 2115 void setZoneShared(boolean shared) { argument 2116 sharedZone = shared;
|