- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 334 for unsafe (0.04 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) -
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) -
doc/next/5-toolchain.md
The compiler can now allocate the backing store for slices on the stack in more situations, which improves performance. This change has the potential to amplify the effects of incorrect [unsafe.Pointer](/pkg/unsafe#Pointer) usage, see for example [issue 73199](/issue/73199). In order to track down these problems, the [bisect tool](https://pkg.go.dev/golang.org/x/tools/cmd/bisect) can be used to find the allocation causing trouble using the
Registered: 2025-05-27 11:13 - Last Modified: 2025-05-22 22:49 - 2K 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) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java
* which will prevent us from selecting the {@code UnsafeAtomicHelper} strategy. */ private static final ClassLoader NO_UNSAFE = getClassLoader(ImmutableSet.of("java.lang.invoke.VarHandle", "sun.misc.Unsafe")); /** * This classloader disallows {@link java.lang.invoke.VarHandle}, {@link sun.misc.Unsafe} and
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 8.1K 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) -
cmd/os_unix.go
func parseDirEnt(buf []byte) (consumed int, name []byte, typ os.FileMode, err error) { // golang.org/issue/15653 dirent := (*syscall.Dirent)(unsafe.Pointer(&buf[0])) if v := unsafe.Offsetof(dirent.Reclen) + unsafe.Sizeof(dirent.Reclen); uintptr(len(buf)) < v { return consumed, nil, typ, fmt.Errorf("buf size of %d smaller than dirent header size %d", len(buf), v) } if len(buf) < int(dirent.Reclen) {
Registered: 2025-05-25 19:28 - Last Modified: 2025-02-18 16:25 - 9.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java
* which will prevent us from selecting the {@code UnsafeAtomicHelper} strategy. */ private static final ClassLoader NO_UNSAFE = getClassLoader(ImmutableSet.of("java.lang.invoke.VarHandle", "sun.misc.Unsafe")); /** * This classloader disallows {@link java.lang.invoke.VarHandle}, {@link sun.misc.Unsafe} and
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java
ImmutableMap.of( '\n', "<newline>", '\t', "<tab>", '&', "<and>"); public void testSafeRange() throws IOException { // Basic escaping of unsafe chars (wrap them in {,}'s) CharEscaper wrappingEscaper = new ArrayBasedCharEscaper(NO_REPLACEMENTS, 'A', 'Z') { @Override protected char[] escapeUnsafe(char c) {
Registered: 2025-05-30 12:43 - Last Modified: 2025-02-18 15:41 - 3.6K bytes - Viewed (0)