Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for getcallersp (0.16 sec)

  1. src/runtime/os_solaris.go

    	gp := getg()
    	var mp *m
    	if gp != nil {
    		mp = gp.m
    	}
    	if mp != nil && mp.libcallsp == 0 {
    		mp.libcallg.set(gp)
    		mp.libcallpc = getcallerpc()
    		// sp must be the last, because once async cpu profiler finds
    		// all three values to be non-zero, it will use them
    		mp.libcallsp = getcallersp()
    	} else {
    		mp = nil // See comment in sys_darwin.go:libcCall
    	}
    
    	var libcall libcall
    	libcall.fn = uintptr(unsafe.Pointer(fn))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/runtime/os2_aix.go

    	gp := getg()
    	mp := gp.m
    	resetLibcall := true
    	if mp.libcallsp == 0 {
    		mp.libcallg.set(gp)
    		mp.libcallpc = getcallerpc()
    		// sp must be the last, because once async cpu profiler finds
    		// all three values to be non-zero, it will use them
    		mp.libcallsp = getcallersp()
    	} else {
    		resetLibcall = false // See comment in sys_darwin.go:libcCall
    	}
    
    	c := libcall{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/runtime/lock_js.go

    	}
    
    	e := events[len(events)-1]
    	if e.returned {
    		return e.gp, false
    	}
    	return nil, false
    }
    
    var idleStart int64
    
    func handleAsyncEvent() {
    	idleStart = nanotime()
    	pause(getcallersp() - 16)
    }
    
    // clearIdleTimeout clears our record of the timeout started by beforeIdle.
    func clearIdleTimeout() {
    	idleTimeout.clear()
    	idleTimeout = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top