Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UnsafeAtomicHelper (0.16 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

        if (isJava8()) {
          checkHelperVersion(getClass().getClassLoader(), "UnsafeAtomicHelper");
        } else {
          checkHelperVersion(getClass().getClassLoader(), "VarHandleAtomicHelper");
        }
        checkHelperVersion(NO_VAR_HANDLE, "UnsafeAtomicHelper");
        checkHelperVersion(NO_UNSAFE, "AtomicReferenceFieldUpdaterAtomicHelper");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

      static {
        AtomicHelper helper;
        Throwable thrownUnsafeFailure = null;
        Throwable thrownAtomicReferenceFieldUpdaterFailure = null;
    
        if (mightBeAndroid()) {
          try {
            helper = new UnsafeAtomicHelper();
          } catch (Exception | Error unsafeFailure) { // sneaky checked exception
            thrownUnsafeFailure = unsafeFailure;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

         */
    
        /*
         * We don't test UnsafeAtomicHelper here, since guava-android doesn't provide a way to use it
         * under the JVM. (We could arrange for one if we really wanted, but that will break once the
         * JDK further restricts access to Unsafe.) But we have coverage under an Android emulator,
         * which uses UnsafeAtomicHelper when it runs AbstractFutureTest itself.
         */
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

        Throwable thrownAtomicReferenceFieldUpdaterFailure = null;
    
        helper = VarHandleAtomicHelperMaker.INSTANCE.tryMakeVarHandleAtomicHelper();
        if (helper == null) {
          try {
            helper = new UnsafeAtomicHelper();
          } catch (Exception | Error unsafeFailure) { // sneaky checked exception
            thrownUnsafeFailure = unsafeFailure;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureDefaultAtomicHelperTest.java

    public class AbstractFutureDefaultAtomicHelperTest extends TestCase {
      public void testUsingExpectedAtomicHelper() throws Exception {
        if (isAndroid()) {
          assertThat(AbstractFutureState.atomicHelperTypeForTest()).isEqualTo("UnsafeAtomicHelper");
        } else {
          assertThat(AbstractFutureState.atomicHelperTypeForTest())
              .isEqualTo("AtomicReferenceFieldUpdaterAtomicHelper");
        }
      }
    
      private static boolean isJava8() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 13:08:45 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top