Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TracebackSystemstack (0.14 sec)

  1. src/runtime/stack_test.go

    	}
    
    	// Test that profiles correctly jump over systemstack,
    	// including nested systemstack calls.
    	pcs := make([]uintptr, 20)
    	pcs = pcs[:TracebackSystemstack(pcs, 5)]
    	// Check that runtime.TracebackSystemstack appears five times
    	// and that we see TestTracebackSystemstack.
    	countIn, countOut := 0, 0
    	frames := CallersFrames(pcs)
    	var tb strings.Builder
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    }
    
    //go:noinline
    func TracebackSystemstack(stk []uintptr, i int) int {
    	if i == 0 {
    		pc, sp := getcallerpc(), getcallersp()
    		var u unwinder
    		u.initAt(pc, sp, 0, getg(), unwindJumpStack) // Don't ignore errors, for testing
    		return tracebackPCs(&u, 0, stk)
    	}
    	n := 0
    	systemstack(func() {
    		n = TracebackSystemstack(stk, i-1)
    	})
    	return n
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top