Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for getcallersp (0.17 sec)

  1. src/runtime/asan.go

    package runtime
    
    import (
    	"unsafe"
    )
    
    // Public address sanitizer API.
    func ASanRead(addr unsafe.Pointer, len int) {
    	sp := getcallersp()
    	pc := getcallerpc()
    	doasanread(addr, uintptr(len), sp, pc)
    }
    
    func ASanWrite(addr unsafe.Pointer, len int) {
    	sp := getcallersp()
    	pc := getcallerpc()
    	doasanwrite(addr, uintptr(len), sp, pc)
    }
    
    // Private interface for the runtime.
    const asanenabled = true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:39:58 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/export_windows_test.go

    }
    
    type ContextStub struct {
    	context
    }
    
    func (c ContextStub) GetPC() uintptr {
    	return c.ip()
    }
    
    func NewContextStub() *ContextStub {
    	var ctx context
    	ctx.set_ip(getcallerpc())
    	ctx.set_sp(getcallersp())
    	ctx.set_fp(getcallerfp())
    	return &ContextStub{ctx}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:25:00 UTC 2024
    - 759 bytes
    - Viewed (0)
  3. src/runtime/panic.go

    		throw("defer on system stack")
    	}
    
    	d := newdefer()
    	d.link = gp._defer
    	gp._defer = d
    	d.fn = fn
    	d.pc = getcallerpc()
    	// We must not be preempted between calling getcallersp and
    	// storing it to d.sp because getcallersp's result is a
    	// uintptr stack pointer.
    	d.sp = getcallersp()
    
    	// deferproc returns 0 normally.
    	// a deferred func that stops a panic
    	// makes the deferproc return 1.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  4. src/runtime/stubs.go

    // the call to f (where f will return).
    //
    // The call to getcallerpc and getcallersp must be done in the
    // frame being asked about.
    //
    // The result of getcallersp is correct at the time of the return,
    // but it may be invalidated by any subsequent call to a function
    // that might relocate the stack in order to grow or shrink it.
    // A general rule is that the result of getcallersp should be used
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  5. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.int64tofloat32", 1},
    	{"runtime.uint64tofloat64", 1},
    	{"runtime.uint64tofloat32", 1},
    	{"runtime.uint32tofloat64", 1},
    	{"runtime.complex128div", 1},
    	{"runtime.getcallerpc", 1},
    	{"runtime.getcallersp", 1},
    	{"runtime.racefuncenter", 1},
    	{"runtime.racefuncexit", 1},
    	{"runtime.raceread", 1},
    	{"runtime.racewrite", 1},
    	{"runtime.racereadrange", 1},
    	{"runtime.racewriterange", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func uint64tofloat64(uint64) float64
    func uint64tofloat32(uint64) float32
    func uint32tofloat64(uint32) float64
    
    func complex128div(num complex128, den complex128) (quo complex128)
    
    func getcallerpc() uintptr
    func getcallersp() uintptr
    
    // race detection
    func racefuncenter(uintptr)
    func racefuncexit()
    func raceread(uintptr)
    func racewrite(uintptr)
    func racereadrange(addr, size uintptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. src/runtime/mprof.go

    		prof.stack[1] = abi.FuncPCABIInternal(_LostContendedRuntimeLock) + sys.PCQuantum
    		prof.stack[2] = 0
    		return
    	}
    
    	var nstk int
    	gp := getg()
    	sp := getcallersp()
    	pc := getcallerpc()
    	systemstack(func() {
    		var u unwinder
    		u.initAt(pc, sp, 0, gp, unwindSilentErrors|unwindJumpStack)
    		nstk = 1 + tracebackPCs(&u, skip, prof.stack[1:])
    	})
    	if nstk < len(prof.stack) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/builtin.go

    	{"int64tofloat32", funcTag, 138},
    	{"uint64tofloat64", funcTag, 139},
    	{"uint64tofloat32", funcTag, 140},
    	{"uint32tofloat64", funcTag, 141},
    	{"complex128div", funcTag, 142},
    	{"getcallerpc", funcTag, 143},
    	{"getcallersp", funcTag, 143},
    	{"racefuncenter", funcTag, 31},
    	{"racefuncexit", funcTag, 9},
    	{"raceread", funcTag, 31},
    	{"racewrite", funcTag, 31},
    	{"racereadrange", funcTag, 144},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  10. src/runtime/traceback.go

    	traceback1(pc, sp, lr, gp, 0)
    }
    
    // tracebacktrap is like traceback but expects that the PC and SP were obtained
    // from a trap, not from gp->sched or gp->syscallpc/gp->syscallsp or getcallerpc/getcallersp.
    // Because they are from a trap instead of from a saved pair,
    // the initial PC must not be rewound to the previous instruction.
    // (All the saved pairs record a PC that is a return address, so we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top