Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for newm1 (0.05 sec)

  1. 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)
  2. src/go/doc/doc_test.go

    	}
    }
    
    const funcsTestFile = `
    package funcs
    
    func F() {}
    
    type S1 struct {
    	S2  // embedded, exported
    	s3  // embedded, unexported
    }
    
    func NewS1()  S1 {return S1{} }
    func NewS1p() *S1 { return &S1{} }
    
    func (S1) M1() {}
    func (r S1) M2() {}
    func(S1) m3() {}		// unexported not shown
    func (*S1) P1() {}		// pointer receiver
    
    type S2 int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:52 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  3. test/fixedbugs/issue9006.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type T1 struct {
    	X int
    }
    
    func NewT1(x int) T1 { return T1{x} }
    
    type T2 int
    
    func NewT2(x int) T2 { return T2(x) }
    
    func main() {
    	switch (T1{}) {
    	case NewT1(1):
    		panic("bad1")
    	case NewT1(0):
    		// ok
    	default:
    		panic("bad2")
    	}
    
    	switch T2(0) {
    	case NewT2(2):
    		panic("bad3")
    	case NewT2(0):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 520 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/extension_test.go

    			t.Errorf("%s: re-marshaled data differs from original: %v %v", k, data, newData)
    		}
    		if !reflect.DeepEqual(tc.orig, new1) {
    			t.Errorf("%s: unmarshaled struct differs from original: %v %v", k, tc.orig, new1)
    		}
    		if !reflect.DeepEqual(new1, new2) {
    			t.Errorf("%s: re-unmarshaled struct differs from original: %v %v", k, new1, new2)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 22:36:37 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  5. pkg/config/analysis/diag/messages.go

    func (ms *Messages) SortedDedupedCopy() Messages {
    	newMs := append((*ms)[:0:0], *ms...)
    	newMs.Sort()
    
    	// Take advantage of the fact that the list is already sorted to dedupe
    	// messages (any duplicates should be adjacent).
    	var deduped Messages
    	for _, m := range newMs {
    		// Two messages are duplicates if they have the same string representation.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 02:47:46 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. pkg/config/mesh/watcher_test.go

    	assert.Equal(t, w.Mesh(), m)
    
    	doneCh := make(chan struct{}, 1)
    
    	var newM *meshconfig.MeshConfig
    	w.AddMeshHandler(func() {
    		newM = w.Mesh()
    		close(doneCh)
    	})
    
    	// Change the file to trigger the update.
    	m.IngressClass = "foo"
    	writeMessage(t, path, m)
    
    	select {
    	case <-doneCh:
    		assert.Equal(t, newM, m)
    		assert.Equal(t, w.Mesh(), newM)
    		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
    - 3K bytes
    - Viewed (0)
  7. pkg/test/framework/components/authz/kube.go

    	ist, err := istio.Get(ctx)
    	if err != nil {
    		return err
    	}
    
    	// Now parse the provider YAML.
    	newMC := &meshconfig.MeshConfig{}
    	if err := protomarshal.ApplyYAML(providerYAML, newMC); err != nil {
    		return err
    	}
    
    	providerNames := sets.New[string]()
    	for _, p := range newMC.GetExtensionProviders() {
    		providerNames.Insert(p.Name)
    	}
    
    	return ist.UpdateMeshConfig(ctx,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. test/fixedbugs/issue6295.dir/p1.go

    package p1
    
    import "./p0"
    
    type T1 interface {
    	p0.T0
    	m1()
    }
    
    type S1 struct {
    	p0.S0
    }
    
    func (S1) m1() {}
    
    func NewT0() p0.T0 {
    	return S1{}
    }
    
    func NewT1() T1 {
    	return S1{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 339 bytes
    - Viewed (0)
  9. test/fixedbugs/issue6295.dir/p2.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"./p0"
    	"./p1"
    )
    
    var (
    	_ p0.T0 = p0.S0{}
    	_ p0.T0 = p1.S1{}
    	_ p0.T0 = p1.NewT0()
    	_ p0.T0 = p1.NewT1() // same as p1.S1{}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 327 bytes
    - Viewed (0)
  10. test/typeparam/issue50598.dir/a2.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a2
    
    import "./a0"
    
    func New() int {
    	return a0.Builder[int]{}.New1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 239 bytes
    - Viewed (0)
Back to top