Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 133 for newB (0.04 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    		newM = append(newM, vt)
    	}
    
    	return newM
    }
    
    func sliceFromMapSlice(s []map[string]interface{}) []interface{} {
    	newS := []interface{}{}
    	for _, v := range s {
    		newS = append(newS, v)
    	}
    
    	return newS
    }
    
    type SortableSliceOfMaps struct {
    	s []map[string]interface{}
    	k string // key to sort on
    }
    
    func (ss SortableSliceOfMaps) Len() int {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  2. test/fixedbugs/bug099.go

    // Arg is unused but important:
    // if you take it out (and the 0s below)
    // then the bug goes away.
    func NewI(i int) I {
    	return new(S)
    }
    
    // Uses interface method.
    func Use(x I) {
    	x.F()
    }
    
    func main() {
    	i := NewI(0);
    	Use(i);
    
    	// Again, without temporary
    	// Crashes because x.F is 0.
    	Use(NewI(0));
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 637 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/guarantee-all-funcs-one-use.mlir

    // -----
    // Basic test.
    // CHECK-LABEL: func @f
    func.func @f() {
      // CHECK: call @g() : () -> ()
      // CHECK: call @[[NEWG:.+]]() : () -> ()
      func.call @g() : () -> ()
      func.call @g() : () -> ()
      func.return
    }
    
    // CHECK: func @g()
    // CHECK: func private @[[NEWG]]()
    func.func @g() {
      func.return
    }
    
    // -----
    // Transitive callees.
    // CHECK-LABEL: func @f
    // 2 copies of @g
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    	checkdead()
    	unlock(&sched.lock)
    
    	for {
    		lock(&newmHandoff.lock)
    		for newmHandoff.newm != 0 {
    			newm := newmHandoff.newm.ptr()
    			newmHandoff.newm = 0
    			unlock(&newmHandoff.lock)
    			for newm != nil {
    				next := newm.schedlink.ptr()
    				newm.schedlink = 0
    				newm1(newm)
    				newm = next
    			}
    			lock(&newmHandoff.lock)
    		}
    		newmHandoff.waiting = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  5. src/encoding/xml/typeinfo.go

    			if oldf.parents[p] != newf.parents[p] {
    				continue Loop
    			}
    		}
    		if len(oldf.parents) > len(newf.parents) {
    			if oldf.parents[len(newf.parents)] == newf.name {
    				conflicts = append(conflicts, i)
    			}
    		} else if len(oldf.parents) < len(newf.parents) {
    			if newf.parents[len(oldf.parents)] == oldf.name {
    				conflicts = append(conflicts, i)
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:23:29 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/SimpleAnalysisDemo.kt

        externalFunctions = listOf(::newD),
        defaultImports = listOf(DefaultFqName("com.example", "newD"))
    )
    
    
    object SimpleAnalysisDemo {
        @JvmStatic
        fun main(args: Array<String>) {
            printResolutionResults(
                schema.resolve(
                    """
                        val myB = b()
    
                        a = myB
                        val myD = newD("shared")
    
                        val c1 = c(1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/demoTypes.kt

    }
    
    
    class C(var x: Int = 0) {
        @Builder
        fun d(newD: D): C {
            this.d = newD
            return this
        }
    
        @get:Restricted
        var d: D = D()
    
        @get:Restricted
        val y = "test"
    
        @Restricted
        fun f(y: String) = 0
    }
    
    
    class D {
        @get:Restricted
        var id: String = "none"
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:16:59 UTC 2024
    - 949 bytes
    - Viewed (0)
  8. pkg/config/mesh/networks_watcher_test.go

    	doneCh := make(chan struct{}, 1)
    
    	var newN *meshconfig.MeshNetworks
    	w.AddNetworksHandler(func() {
    		newN = w.Networks()
    		close(doneCh)
    	})
    
    	// Change the file to trigger the update.
    	n.Networks["test"] = &meshconfig.Network{}
    	writeMessage(t, path, &n)
    
    	select {
    	case <-doneCh:
    		g.Expect(newN).To(Equal(&n))
    		g.Expect(w.Networks()).To(Equal(newN))
    		break
    	case <-time.After(time.Second * 5):
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. src/runtime/debugcall.go

    		gp.schedlink.set(newg)
    	})
    
    	// Switch to the new goroutine.
    	mcall(func(gp *g) {
    		// Get newg.
    		newg := gp.schedlink.ptr()
    		gp.schedlink = 0
    
    		// Park the calling goroutine.
    		trace := traceAcquire()
    		if trace.ok() {
    			// Trace the event before the transition. It may take a
    			// stack trace, but we won't own the stack after the
    			// transition anymore.
    			trace.GoPark(traceBlockDebugCall, 1)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. test/complit.go

    	if len(m) != 3 {
    		panic("m")
    	}
    
    	eq([]*R{itor(0), itor(1), itor(2), itor(3), itor(4), itor(5)})
    	eq([]*R{{0}, {1}, {2}, {3}, {4}, {5}})
    
    	p1 := NewP(1, 2)
    	p2 := NewP(1, 2)
    	if p1 == p2 {
    		panic("NewP")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 1.7K bytes
    - Viewed (0)
Back to top