Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 357 for Atack (0.04 sec)

  1. test/fixedbugs/issue25507.go

    type large struct {
    	b [1500000000]byte
    }
    
    func (x large) f1() int { // GC_ERROR "stack frame too large"
    	return 5
    }
    
    func f2(x large) int { // GC_ERROR "stack frame too large"
    	return 5
    }
    
    func f3() (x large, i int) { // GC_ERROR "stack frame too large"
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:37:52 UTC 2020
    - 754 bytes
    - Viewed (0)
  2. test/fixedbugs/issue16249.go

    	}
    	if n <= 1 {
    		res = n
    		return
    	}
    	res = B(m) // This call to B drizzles a little junk on the stack.
    	res, err = A(n-1, m)
    	res++
    	return
    }
    
    // B does a little bit of recursion dribbling not-zero onto the stack.
    //go:noinline
    func B(n int64) (res int64) {
    	if n <= 1 { // Prefer to leave a 1 on the stack.
    		return n
    	}
    	return 1 + B(n-1)
    }
    
    func main() {
    	x, e := A(0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 02 00:40:40 UTC 2016
    - 1.3K bytes
    - Viewed (0)
  3. src/runtime/gcinfo_test.go

    	{
    		var x Ptr
    		verifyGCInfo(t, "stack Ptr", &x, infoPtr)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x ScalarPtr
    		verifyGCInfo(t, "stack ScalarPtr", &x, infoScalarPtr)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x PtrScalar
    		verifyGCInfo(t, "stack PtrScalar", &x, infoPtrScalar)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x BigStruct
    		verifyGCInfo(t, "stack BigStruct", &x, infoBigStruct())
    		runtime.KeepAlive(x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/runtime/traceback_system_test.go

    	child6bad()
    	child6() // appears in stack trace
    }
    
    //go:noinline
    func child6bad() {
    }
    
    //go:noinline
    func child6() { // test trace through first of two call instructions
    	child7() // appears in stack trace
    	child7bad()
    }
    
    //go:noinline
    func child7bad() {
    }
    
    //go:noinline
    func child7() {
    	// Write runtime.Caller's view of the stack to stderr, for debugging.
    	var pcs [16]uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/runtime/race/testdata/regression_test.go

    	switch x {
    	case 0:
    		return t.encodeType(x * x)
    	}
    	return 0, nil
    }
    
    type stack []int
    
    func (s *stack) push(x int) {
    	*s = append(*s, x)
    }
    
    func (s *stack) pop() int {
    	i := len(*s)
    	n := (*s)[i-1]
    	*s = (*s)[:i-1]
    	return n
    }
    
    func TestNoRaceStackPushPop(t *testing.T) {
    	var s stack
    	go func(s *stack) {}(&s)
    	s.push(1)
    	x := s.pop()
    	_ = x
    }
    
    type RpcChan struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 02:01:34 UTC 2015
    - 2.7K bytes
    - Viewed (0)
  6. src/runtime/mem_darwin.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"
    )
    
    // Don't split the stack as this function may be invoked without a valid G,
    // which prevents us from allocating more stack.
    //
    //go:nosplit
    func sysAllocOS(n uintptr) unsafe.Pointer {
    	v, err := mmap(nil, n, _PROT_READ|_PROT_WRITE, _MAP_ANON|_MAP_PRIVATE, -1, 0)
    	if err != 0 {
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. src/runtime/os_openbsd_libc.go

    	if err := pthread_attr_init(&attr); err != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    
    	// Find out OS stack size for our own stack guard.
    	var stacksize uintptr
    	if pthread_attr_getstacksize(&attr, &stacksize) != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    	mp.g0.stack.hi = stacksize // for mstart
    
    	// Tell the pthread library we won't join with this thread.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. src/internal/trace/internal/testgen/go122/trace.go

    	g.strings[s] = id
    	return id
    }
    
    // Stack registers a stack with the trace.
    //
    // This is a convenience function for easily adding correct
    // stacks to traces.
    func (g *Generation) Stack(stk []trace.StackFrame) uint64 {
    	if len(stk) == 0 {
    		return 0
    	}
    	if len(stk) > 32 {
    		panic("stack too big for test")
    	}
    	var stkc stack
    	copy(stkc.stk[:], stk)
    	stkc.len = len(stk)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. test/linknameasm.dir/x.go

    // Test that a linkname applied on an assembly declaration
    // does not affect stack map generation.
    
    package main
    
    import (
    	"runtime"
    	_ "unsafe"
    )
    
    //go:linkname asm
    func asm(*int)
    
    func main() {
    	x := new(int)
    	asm(x)
    }
    
    // called from asm
    func callback() {
    	runtime.GC() // scan stack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 451 bytes
    - Viewed (0)
  10. src/runtime/signal_riscv64.go

    // preparePanic sets up the stack to look like a call to sigpanic.
    func (c *sigctxt) preparePanic(sig uint32, gp *g) {
    	// We arrange RA, and pc to pretend the panicking
    	// function calls sigpanic directly.
    	// Always save RA to stack so that panics in leaf
    	// functions are correctly handled. This smashes
    	// the stack frame but we're not going back there
    	// anyway.
    	sp := c.sp() - goarch.PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:17 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top