Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 315 for Grow$ (0.04 sec)

  1. hack/e2e-internal/e2e-grow-cluster.sh

    xichengliudui <******@****.***> 1550548203 -0500
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 19 03:50:03 UTC 2019
    - 1K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprog/framepointer.go

    		print("saved FP=", fp, " &x=", argp, "\n")
    		panic("FAIL")
    	}
    
    	// grow the stack
    	grow(10000)
    
    	// check again
    	argp = uintptr(unsafe.Pointer(&x))
    	fp = *getFP()
    	if !(argp-0x100 <= fp && fp <= argp+0x100) {
    		print("saved FP=", fp, " &x=", argp, "\n")
    		panic("FAIL")
    	}
    }
    
    func grow(n int) {
    	if n > 0 {
    		grow(n - 1)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 22:58:13 UTC 2023
    - 839 bytes
    - Viewed (0)
  3. src/strings/builder.go

    	b.addr = nil
    	b.buf = nil
    }
    
    // grow copies the buffer to a new, larger buffer so that there are at least n
    // bytes of capacity beyond len(b.buf).
    func (b *Builder) grow(n int) {
    	buf := bytealg.MakeNoZero(2*cap(b.buf) + n)[:len(b.buf)]
    	copy(buf, b.buf)
    	b.buf = buf
    }
    
    // Grow grows b's capacity, if necessary, to guarantee space for
    // another n bytes. After Grow(n), at least n bytes can be written to b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/strings/builder_test.go

    		for i := 0; i < b.N; i++ {
    			var buf bytes.Buffer
    			if grow {
    				buf.Grow(len(someBytes) * numWrite)
    			}
    			for i := 0; i < numWrite; i++ {
    				buf.Write(someBytes)
    			}
    			sinkS = buf.String()
    		}
    	})
    }
    
    func TestBuilderGrowSizeclasses(t *testing.T) {
    	s := Repeat("a", 19)
    	allocs := testing.AllocsPerRun(100, func() {
    		var b Builder
    		b.Grow(18)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. test/fixedbugs/issue51101.go

    func main() {
    	F(&b, &a)
    }
    
    //go:noinline
    func F(a, b *int) bool {
    	x := a == b
    	G(x)
    	y := a != b
    	return y
    }
    
    //go:noinline
    func G(bool) {
    	grow([1000]int{20})
    }
    
    func grow(x [1000]int) {
    	if x[0] != 0 {
    		x[0]--
    		grow(x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 14 23:08:44 UTC 2022
    - 523 bytes
    - Viewed (0)
  6. src/runtime/mem_wasm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "unsafe"
    
    func sbrk(n uintptr) unsafe.Pointer {
    	grow := divRoundUp(n, physPageSize)
    	size := growMemory(int32(grow))
    	if size < 0 {
    		return nil
    	}
    	resetMemoryDataView()
    	return unsafe.Pointer(uintptr(size) * physPageSize)
    }
    
    // Implemented in src/runtime/sys_wasm.s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 488 bytes
    - Viewed (0)
  7. test/fixedbugs/issue26407.go

    	}
    }
    
    //go:noinline
    func compare(x **int) *int {
    	var y *int
    	if x == &y {
    		panic("not possible")
    	}
    	// grow the stack to trigger a check for invalid pointers
    	grow()
    	if x == &y {
    		panic("not possible")
    	}
    	return *x
    }
    
    //go:noinline
    func grow() {
    	var large [1 << 16]uintptr
    	use(large[:])
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 17 14:58:54 UTC 2018
    - 964 bytes
    - Viewed (0)
  8. src/internal/fuzz/queue.go

    type queue struct {
    	// elems holds a ring buffer.
    	// The queue is empty when begin = end.
    	// The queue is full (until grow is called) when end = begin + N - 1 (mod N)
    	// where N = cap(elems).
    	elems     []any
    	head, len int
    }
    
    func (q *queue) cap() int {
    	return len(q.elems)
    }
    
    func (q *queue) grow() {
    	oldCap := q.cap()
    	newCap := oldCap * 2
    	if newCap == 0 {
    		newCap = 8
    	}
    	newElems := make([]any, newCap)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 05 21:02:45 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  9. test/fixedbugs/issue27278.go

    }
    
    func (t *T3) M() []string {
    	return []string{}
    }
    
    func main() {
    	poison()
    	f()
    }
    
    //go:noinline
    func f() {
    	(&T{}).M()
    	grow(10000)
    }
    
    // grow stack, triggers stack copy
    func grow(n int) {
    	if n == 0 {
    		return
    	}
    	grow(n-1)
    }
    
    // put some junk on stack, which cannot be valid address
    //go:noinline
    func poison() {
    	x := [10]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    	g = x
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 30 02:19:37 UTC 2018
    - 865 bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/callback.go

    }
    
    //export go_callback
    func go_callback() {
    	if e := extraMInUse.Load(); e == 0 {
    		fmt.Printf("in callback extraMInUse got %d want >0\n", e)
    		os.Exit(1)
    	}
    
    	runtime.GC()
    	grow()
    	runtime.GC()
    }
    
    var cnt int
    
    func grow() {
    	x := 10000
    	sum := 0
    	if grow1(&x, &sum) == 0 {
    		panic("bad")
    	}
    }
    
    func grow1(x, sum *int) int {
    	if *x == 0 {
    		return *sum + 1
    	}
    	*x--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 14:05:01 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top