Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 409 for Atack (0.05 sec)

  1. test/codegen/stack.go

    // license that can be found in the LICENSE file.
    
    package codegen
    
    import "runtime"
    
    // This file contains code generation tests related to the use of the
    // stack.
    
    // Check that stack stores are optimized away.
    
    // 386:"TEXT\t.*, [$]0-"
    // amd64:"TEXT\t.*, [$]0-"
    // arm:"TEXT\t.*, [$]-4-"
    // arm64:"TEXT\t.*, [$]0-"
    // mips:"TEXT\t.*, [$]-4-"
    // ppc64x:"TEXT\t.*, [$]0-"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/runtime/debug/stack.go

    )
    
    // PrintStack prints to standard error the stack trace returned by runtime.Stack.
    func PrintStack() {
    	os.Stderr.Write(Stack())
    }
    
    // Stack returns a formatted stack trace of the goroutine that calls it.
    // It calls [runtime.Stack] with a large enough buffer to capture the entire trace.
    func Stack() []byte {
    	buf := make([]byte, 1024)
    	for {
    		n := runtime.Stack(buf, false)
    		if n < len(buf) {
    			return buf[:n]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/runtime/symtabinl_test.go

    			}
    
    			if len(stack) > 0 {
    				stack += " "
    			}
    			stack += FmtSprintf("%s:%d", name, line-tiuStart)
    		}
    
    		if stack != prevStack {
    			prevStack = stack
    
    			t.Logf("tiuTest+%#x: %s", pc-pc1, stack)
    
    			if _, ok := want[stack]; ok {
    				want[stack]++
    			}
    		}
    	}
    
    	// Check that we got all the stacks we wanted.
    	for stack, count := range want {
    		if count == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/runtime/debugcall.go

    // explaining why.
    //
    //go:nosplit
    func debugCallCheck(pc uintptr) string {
    	// No user calls from the system stack.
    	if getg() != getg().m.curg {
    		return debugCallSystemStack
    	}
    	if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
    		// Fast syscalls (nanotime) and racecall switch to the
    		// g0 stack without switching g. We can't safely make
    		// a call in this state. (We can't even safely
    		// systemstack.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. test/fixedbugs/issue16016.go

    		_ = v
    	}
    }
    
    type R struct{ *T }
    
    type Q interface {
    	Foo([]interface{})
    }
    
    func main() {
    	var count = 10000
    	if runtime.Compiler == "gccgo" {
    		// On targets without split-stack libgo allocates
    		// a large stack for each goroutine. On 32-bit
    		// systems this test can run out of memory.
    		const intSize = 32 << (^uint(0) >> 63) // 32 or 64
    		if intSize < 64 {
    			count = 100
    		}
    	}
    
    	var q Q = &R{&T{}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:39:06 UTC 2024
    - 877 bytes
    - Viewed (0)
  9. pkg/log/default_test.go

    				"\"stack\":\".*\"}",
    			json:       true,
    			caller:     true,
    			stackLevel: DebugLevel,
    		},
    		{
    			f: func() { Info("Hello") },
    			pat: "{\"level\":\"info\",\"time\":\"" + timePattern + "\",\"caller\":\"log/default_test.go:.*\",\"msg\":\"Hello\"," +
    				"\"stack\":\".*\"}",
    			json:       true,
    			caller:     true,
    			stackLevel: DebugLevel,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/mergelocals_test.go

    	testenv.MustHaveGoBuild(t)
    
    	// This test does a build of a specific canned package to
    	// check whether merging of stack slots is taking place.
    	// The idea is to do the compile with a trace option turned
    	// on and then pick up on the frame offsets of specific
    	// variables.
    	//
    	// Stack slot merging is a greedy algorithm, and there can
    	// be many possible ways to overlap a given set of candidate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top