Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Grace (0.14 sec)

  1. guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

      int recursionCount;
    
      private static final Object duh = new Object();
    
      @Param Mode mode;
    
      enum Mode {
        LAZY_STACK_TRACE {
          @Override
          List<StackTraceElement> getStackTrace(Throwable t) {
            return lazyStackTrace(t);
          }
        },
        GET_STACK_TRACE {
          @Override
          List<StackTraceElement> getStackTrace(Throwable t) {
            return asList(t.getStackTrace());
          }
        };
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        assertThrows(IllegalArgumentException.class, () -> multiset.add(KEY, COUNT_TO_ADD));
      }
    
      /**
       * Simulate some of the races that can happen on add. We can't easily simulate the race that
       * happens when an {@link AtomicInteger#compareAndSet} fails, but we can simulate the case where
       * the putIfAbsent returns a non-null value, and the case where the replace() of an observed zero
       * fails.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        thread.start();
    
        boolean done = doneSignal.await(1, TimeUnit.SECONDS);
        if (!done) {
          StringBuilder builder = new StringBuilder();
          for (StackTraceElement trace : thread.getStackTrace()) {
            builder.append("\tat ").append(trace).append('\n');
          }
          fail(builder.toString());
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

                        }
                      },
                      service);
            } else if (i % DIRECT_EXECUTIONS_PER_THREAD == DIRECT_EXECUTIONS_PER_THREAD - 1) {
              // When at max depth, record stack trace depth
              lengthChecks.add(
                  serializer.submit(
                      new Callable<Integer>() {
                        @Override
                        public Integer call() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

                        }
                      },
                      service);
            } else if (i % DIRECT_EXECUTIONS_PER_THREAD == DIRECT_EXECUTIONS_PER_THREAD - 1) {
              // When at max depth, record stack trace depth
              lengthChecks.add(
                  serializer.submit(
                      new Callable<Integer>() {
                        @Override
                        public Integer call() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Suppliers.java

          long nanos = expirationNanos;
          long now = System.nanoTime();
          if (nanos == 0 || now - nanos >= 0) {
            synchronized (this) {
              if (nanos == expirationNanos) { // recheck for lost race
                T t = delegate.get();
                value = t;
                nanos = now + durationNanos;
                // In the very unlikely event that nanos is 0, set it to 1;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. guava-gwt/pom.xml

                  [INFO] Validating units:
                  [INFO]    Ignored 53 units with compilation errors in first pass.
                  [INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    
                Turning up the log level, we see that GWT is trying to compile classes from other
                packages, like RangeTest. The reason for this is that GWT doesn't distinguish between
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 15:00:55 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

            //
            // Note that there is a race condition here which can result in missing
            // a cyclic edge: it's possible for two threads to simultaneous find
            // "safe" edges which together form a cycle. Preventing this race
            // condition efficiently without _introducing_ deadlock is probably
            // tricky. For now, just accept the race condition---missing a warning
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Throwables.java

        return stringWriter.toString();
      }
    
      /**
       * Returns the stack trace of {@code throwable}, possibly providing slower iteration over the full
       * trace but faster iteration over parts of the trace. Here, "slower" and "faster" are defined in
       * comparison to the normal way to access the stack trace, {@link Throwable#getStackTrace()
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Throwables.java

        return stringWriter.toString();
      }
    
      /**
       * Returns the stack trace of {@code throwable}, possibly providing slower iteration over the full
       * trace but faster iteration over parts of the trace. Here, "slower" and "faster" are defined in
       * comparison to the normal way to access the stack trace, {@link Throwable#getStackTrace()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
Back to top