Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 8,288 for makeN (0.15 sec)

  1. releasenotes/notes/make-httpbin-work-ocp.yaml

    Jonh Wendell <******@****.***> 1700507291 -0500
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 20 19:08:11 UTC 2023
    - 156 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/fixedbugs_test.go

    		}
    		// The bug was in the following assignment. The return
    		// value of makeT() is not copied out of the args area of
    		// stack frame in a timely fashion. So when write barriers
    		// are enabled, the marshaling of the args for the write
    		// barrier call clobbers the result of makeT() before it is
    		// read by the write barrier code.
    		g = makeT()
    		sink = make([]byte, 1000) // force write barriers to eventually happen
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue4313.go

    package main
    
    func main() {
    	c := make(chan int, 1)
    	x := 0
    	select {
    	case c <- x: // should see x = 0, not x = 42 (after makec)
    	case <-makec(&x): // should be evaluated only after c and x on previous line
    	}
    	y := <-c
    	if y != 0 {
    		panic(y)
    	}
    }
    
    func makec(px *int) chan bool {
    	if false { for {} }
    	*px = 42
    	return make(chan bool, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 546 bytes
    - Viewed (0)
  4. test/fixedbugs/issue13799.go

    	}
    }
    
    func test2(iter int) {
    
    	const maxI = 500
    	m := make(map[int][]int) // ERROR "make\(map\[int\]\[\]int\) does not escape$"
    
    	// var fn func()
    	for i := 0; i < maxI; i++ {
    		var fn func() // this makes it work, because fn stays off heap
    		j := 0
    		fn = func() { // ERROR "func literal does not escape$"
    			m[i] = append(m[i], 0)
    			if j < 25 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_chatty_parallel_success_run.txt

    package chatty_parallel_test
    
    import (
    	"testing"
    )
    
    var (
    	afterFirstLog = make(chan struct{})
    	afterSubTest  = make(chan struct{})
    	afterSecondLog = make(chan struct{})
    )
    
    func TestInterruptor(t *testing.T) {
    	t.Parallel()
    
    	<-afterFirstLog
    	t.Run("interruption", func (t *testing.T) {})
    	close(afterSubTest)
    	<-afterSecondLog // Delay the "PASS: TestInterruptor" line until after "CONT  TestLog".
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 1K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/init/bootstraptoken.go

    		Bootstrap tokens are used for establishing bidirectional trust between a node joining
    		the cluster and a control-plane node.
    
    		This command makes all the configurations required to make bootstrap tokens works
    		and then creates an initial token.
    		`)
    
    	bootstrapTokenExamples = cmdutil.Examples(`
    		# Make all the bootstrap token configurations and create an initial token, functionally
    		# equivalent to what generated by kubeadm init.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 11 08:02:50 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  7. pkg/apis/flowcontrol/internalbootstrap/defaults_test.go

    			scheme.Default(defaulted)
    			if apiequality.Semantic.DeepEqual(original, defaulted) {
    				t.Logf("Defaulting makes no change to FlowSchema: %q", original.Name)
    				return
    			}
    			t.Errorf("Expected defaulting to not change FlowSchema: %q, diff: %s", original.Name, cmp.Diff(original, defaulted))
    		})
    	}
    
    	bootstrapPriorityLevels := make([]*flowcontrol.PriorityLevelConfiguration, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue4085b.go

    		shouldPanic("cap out of range", func() { _ = make(T, 0, x) })
    		testMakeInAppend(int(x))
    	} else {
    		n = 1<<31 - 1
    		shouldPanic("len out of range", func() { _ = make(T, n) })
    		shouldPanic("cap out of range", func() { _ = make(T, 0, n) })
    		shouldPanic("len out of range", func() { _ = make(T, int64(n)) })
    		shouldPanic("cap out of range", func() { _ = make(T, 0, int64(n)) })
    		testMakeInAppend(n)
    		var x uint64 = 1<<32 - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 17 17:18:17 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/testprog/futile-wakeup.go

    // license that can be found in the LICENSE file.
    
    // Tests to make sure the runtime doesn't generate futile wakeups. For example,
    // it makes sure that a block on a channel send that unblocks briefly only to
    // immediately go back to sleep (in such a way that doesn't reveal any useful
    // information, and is purely an artifact of the runtime implementation) doesn't
    // make it into the trace.
    
    //go:build ignore
    
    package main
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/strings/clone.go

    import (
    	"internal/stringslite"
    )
    
    // Clone returns a fresh copy of s.
    // It guarantees to make a copy of s into a new allocation,
    // which can be important when retaining only a small substring
    // of a much larger string. Using Clone can help such programs
    // use less memory. Of course, since using Clone makes a copy,
    // overuse of Clone can make programs use more memory.
    // Clone should typically be used only rarely, and only when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 809 bytes
    - Viewed (0)
Back to top