Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for Stack (1.05 sec)

  1. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

       * thrown by {@linkplain MoreExecutors#directExecutor direct execution}) will be caught and
       * logged.
       *
       * <p>Note: If your listener is lightweight -- and will not cause stack overflow by completing
       * more futures or adding more {@code directExecutor()} listeners inline -- consider {@link
       * MoreExecutors#directExecutor}. Otherwise, avoid it: See the warnings on the docs for {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          setFutureSuccess.set(false);
          cancellationSuccess.set(false);
          finalResults.clear();
        }
        executor.shutdown();
      }
    
      // In a previous implementation this would cause a stack overflow after ~2000 futures chained
      // together.  Now it should only be limited by available memory (and time)
      public void testSetFuture_stackOverflow() {
        SettableFuture<String> orig = SettableFuture.create();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

              ImmutableList.of(1, 2),
              ImmutableList.of(3, 5),
              ImmutableList.of(2, 4),
              ImmutableList.of(1, 2, 3, 5, 6, 8, 9));
    
      /*
       * We have a whole series of abstract test classes that "stack", so e.g. the tests for filtered
       * NavigableSets inherit the tests for filtered Iterables, Collections, Sets, and SortedSets. The
       * actual implementation tests are further down.
       */
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          } while (!UNSAFE.compareAndSwapObject(this, HEAD_OFFSET, stack, null));
    
          RunnableExecutorPair reversedStack = null;
          while (stack != NULL_PAIR) {
            RunnableExecutorPair head = stack;
            stack = stack.next;
            head.next = reversedStack;
            reversedStack = head;
          }
          stack = reversedStack;
          while (stack != null) {
            stack.execute();
            stack = stack.next;
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

             */
            Runnable localTask = requireNonNull(task);
            task = null;
            localTask.run();
            return;
          }
          // Executor called reentrantly! Make sure that further calls don't overflow stack. Further
          // reentrant calls will see that their current thread is the same as the one set in
          // latestTaskQueue, and queue rather than calling execute() directly.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *   <li>If many such tasks are chained together (such as with {@code
       *       future.transform(...).transform(...).transform(...)....}), they may overflow the stack.
       *       (In simple cases, callers can avoid this by registering all tasks with the same {@link
       *       MoreExecutors#newSequentialExecutor} wrapper around {@code directExecutor()}. More
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Futures.java

       * exception, every unchecked exception as an unchecked exception, and every error as an error. In
       * addition, the cause of any {@code ExecutionException} is wrapped in order to ensure that the
       * new stack trace matches that of the current thread.
       *
       * <p>Instances of {@code exceptionClass} are created by choosing an arbitrary public constructor
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  8. 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)
  9. guava/src/com/google/common/base/Preconditions.java

     * which are <i>not the caller's fault</i>. Doing so is <b>not recommended</b> because it is
     * misleading to future readers of the code and of stack traces. See <a
     * href="https://github.com/google/guava/wiki/ConditionalFailuresExplained">Conditional failures
     * explained</a> in the Guava User Guide for more advice. Notably, {@link Verify} offers assertions
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  10. 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)
Back to top