- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 255 for unsafe (0.03 sec)
-
guava/src/com/google/common/primitives/UnsignedBytes.java
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-14 16:36 - 20.3K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/Striped64.java
final boolean cas(long cmp, long val) { return UNSAFE.compareAndSwapLong(this, VALUE_OFFSET, cmp, val); } // Unsafe mechanics private static final Unsafe UNSAFE; private static final long VALUE_OFFSET; static { try { UNSAFE = getUnsafe(); Class<?> ak = Cell.class; VALUE_OFFSET = UNSAFE.objectFieldOffset(ak.getDeclaredField("value"));
Registered: 2025-05-30 12:43 - Last Modified: 2025-01-15 22:17 - 11.4K bytes - Viewed (0) -
guava/src/com/google/common/hash/LittleEndianByteArray.java
private static final Unsafe theUnsafe; // The offset to the first element in a byte array. private static final int BYTE_ARRAY_BASE_OFFSET; /** * Returns an Unsafe. Suitable for use in a 3rd party package. Replace with a simple call to * Unsafe.getUnsafe when integrating into a JDK. * * @return an Unsafe instance if successful */
Registered: 2025-05-30 12:43 - Last Modified: 2025-02-12 03:49 - 12.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractFutureState.java
static { Unsafe unsafe = null; try { unsafe = Unsafe.getUnsafe(); } catch (SecurityException tryReflectionInstead) { try { unsafe = doPrivileged( (PrivilegedExceptionAction<Unsafe>) () -> { Class<Unsafe> k = Unsafe.class;
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-14 15:16 - 34.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/FluentIterable.java
* * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(predicate).findFirst()}. */ public final Optional<@NonNull E> firstMatch(Predicate<? super E> predicate) { // Unsafe, but we can't do much about it now. return Iterables.<@NonNull E>tryFind((Iterable<@NonNull E>) getDelegate(), predicate); } /**
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-12 15:07 - 34.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(predicate).findFirst()}. */ public final Optional<@NonNull E> firstMatch(Predicate<? super E> predicate) { // Unsafe, but we can't do much about it now. return Iterables.<@NonNull E>tryFind((Iterable<@NonNull E>) getDelegate(), predicate); } /**
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-12 15:07 - 35.3K bytes - Viewed (0) -
src/cmd/api/main_test.go
Registered: 2025-05-27 11:13 - Last Modified: 2025-02-20 03:25 - 31.4K bytes - Viewed (0) -
api/go1.7.txt
pkg reflect, method (StructTag) Lookup(string) (string, bool) pkg runtime, func CallersFrames([]uintptr) *Frames pkg runtime, func KeepAlive(interface{}) pkg runtime, func SetCgoTraceback(int, unsafe.Pointer, unsafe.Pointer, unsafe.Pointer) pkg runtime, method (*Frames) Next() (Frame, bool) pkg runtime, type Frame struct pkg runtime, type Frame struct, Entry uintptr pkg runtime, type Frame struct, File string
Registered: 2025-05-27 11:13 - Last Modified: 2016-06-28 15:08 - 13.6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
} } // Unsafe, see ImmutableSortedSetFauxverideShim. @SuppressWarnings("unchecked") public static <E> ImmutableSortedSet<E> copyOf(Collection<? extends E> elements) { return copyOfInternal((Ordering<E>) Ordering.natural(), (Collection<E>) elements, false); } // Unsafe, see ImmutableSortedSetFauxverideShim. @SuppressWarnings("unchecked")
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-22 03:38 - 15.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
* package-private, I feel OK with just not testing them for NPE. * * Note that testing casValue is particularly dangerous because it uses Unsafe under some * versions of Java, and apparently Unsafe can cause SIGSEGV instead of NPE—almost as if it's * not safe. */ concat( stream(AbstractFuture.class.getDeclaredMethods()),
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-28 19:14 - 24.9K bytes - Viewed (0)