- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 90 for getcallersp (0.17 sec)
-
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) -
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) -
test/runtime/inlinegcpc.go
package runtime // A function that calls runtime.getcallerpc or runtime.getcallersp() // cannot be inlined, no matter how small it is. func getcallerpc() uintptr func getcallersp() uintptr func pc() uintptr { return getcallerpc() + 1 } func cpc() uintptr { // ERROR "can inline cpc" return pc() + 2 } func sp() uintptr { return getcallersp() + 3 } func csp() uintptr { // ERROR "can inline csp"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 28 19:27:20 UTC 2019 - 618 bytes - Viewed (0) -
src/runtime/export_windows_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 17:25:00 UTC 2024 - 759 bytes - Viewed (0) -
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) -
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) -
src/runtime/sys_libc.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 { // Make sure we don't reset libcallsp. This makes // libcCall reentrant; We remember the g/pc/sp for the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 1.8K bytes - Viewed (0) -
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) -
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) -
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)