Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for nextB (0.22 sec)

  1. src/runtime/gc_test.go

    	type X struct {
    		c     chan error
    		nextx *X
    	}
    	type Y struct {
    		X
    		nexty *Y
    		p     *int
    	}
    	var head *Y
    	for i := 0; i < 10; i++ {
    		p := &Y{}
    		p.c = make(chan error)
    		if head != nil {
    			p.nextx = &head.X
    		}
    		p.nexty = head
    		p.p = new(int)
    		*p.p = 42
    		head = p
    		runtime.GC()
    	}
    	for p := head; p != nil; p = p.nexty {
    		if *p.p != 42 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/iter/pull_test.go

    var yieldSlot2 func(int, int) bool
    
    func TestPullPanic(t *testing.T) {
    	t.Run("next", func(t *testing.T) {
    		next, stop := Pull(panicSeq())
    		if !panicsWith("boom", func() { next() }) {
    			t.Fatal("failed to propagate panic on first next")
    		}
    		// Make sure we don't panic again if we try to call next or stop.
    		if _, ok := next(); ok {
    			t.Fatal("next returned true after iterator panicked")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/ifrt/sink_variable_as_named_array.mlir

    // CHECK-NOT:  [[VARIABLE:%.*]] = "tf.ReadVariableOp"
    // CHECK-NEXT:  [[KEY:%.*]], [[FUTURE:%.*]] = "tf.IfrtLoadVariable"
    // CHECK-SAME:    used_by_host = true
    // CHECK-NEXT:  [[MATRES:%.*]] = "tf.MatMul"(%arg0, [[FUTURE]])
    // CHECK-NEXT:   [[RES:%.*]] = "tf.IfrtCall"(%arg0, [[KEY]]) <{program_id = 6515870160938153680 : i64, variable_arg_indices = [1 : i32]}>
    // CHECK-NEXT:    return [[RES]], [[MATRES]] : tensor<1x1xf32>, tensor<1x1xf32>
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 15:33:17 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval.go

    	}
    
    	return ci, nil
    }
    
    // Next returns the next item in the cache interval provided the cache
    // interval is still valid. An error is returned if the interval is
    // invalidated.
    func (wci *watchCacheInterval) Next() (*watchCacheEvent, error) {
    	// if there are items in the buffer to return, return from
    	// the buffer.
    	if event, exists := wci.buffer.next(); exists {
    		return event, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

            throw new IllegalStateException();
          }
          iterator.remove();
        }
      }
    
      public void testCanCatchSunJavaBug6529795InTargetIterator() {
        try {
          /* Choose 4 steps to get sequence [next, next, next, remove] */
          new IteratorTester<Integer>(
              4, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.KNOWN_ORDER) {
            @Override
            protected Iterator<Integer> newTargetIterator() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go

    	// that are not used in a given program.
    	wroteNext := false
    	for wroteNext || c.next.Load() == nil {
    		head := f.counters.Load()
    		next := head
    		if next == nil {
    			next = &f.end
    		}
    		debugPrintf("register %s next %p\n", c.Name(), next)
    		if !wroteNext {
    			if !c.next.CompareAndSwap(nil, next) {
    				debugPrintf("register %s cas failed %p\n", c.Name(), c.next.Load())
    				continue
    			}
    			wroteNext = true
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. pkg/controller/job/success_policy.go

    			// The current succeeded interval is behind, so we can move to the next.
    			succeededPointer++
    		} else if succeededIndexes[succeededPointer].Last > ruleIndexes[rulePointer].Last {
    			// The current rule interval is behind, so we can move to the next.
    			rulePointer++
    		} else {
    			// Both intervals end at the same position, we can move to the next succeeded, and next rule.
    			succeededPointer++
    			rulePointer++
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

         * stack so that it is returned by the next call to {@link Iterator#next()}. If the element is
         * not in {@link #nextElements}, this method throws an {@link UnknownElementException}.
         *
         * <p>This method is used when testing iterators without a known ordering. We poll the target
         * iterator's next element and pass it to the reference iterator through this method so it can
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

         * stack so that it is returned by the next call to {@link Iterator#next()}. If the element is
         * not in {@link #nextElements}, this method throws an {@link UnknownElementException}.
         *
         * <p>This method is used when testing iterators without a known ordering. We poll the target
         * iterator's next element and pass it to the reference iterator through this method so it can
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        int i = 0;
        while (expectedIterator.hasNext()) {
          Object expected = expectedIterator.next();
    
          assertTrue(
              "index " + i + " expected <" + expected + "., actual is exhausted",
              actualIterator.hasNext());
    
          Object actual = actualIterator.next();
          assertEquals("index " + i, expected, actual);
          i++;
        }
        if (actualIterator.hasNext()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 20:31:37 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top