Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for GETCALLERPC (0.19 sec)

  1. src/runtime/panic32.go

    // failures in the comparisons for s[x], 0 <= x < y (y == len(s))
    func goPanicExtendIndex(hi int, lo uint, y int) {
    	panicCheck1(getcallerpc(), "index out of range")
    	panic(boundsError{x: int64(hi)<<32 + int64(lo), signed: true, y: y, code: boundsIndex})
    }
    func goPanicExtendIndexU(hi uint, lo uint, y int) {
    	panicCheck1(getcallerpc(), "index out of range")
    	panic(boundsError{x: int64(hi)<<32 + int64(lo), signed: false, y: y, code: boundsIndex})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  2. src/runtime/unsafe.go

    	if len < 0 {
    		panicunsafeslicelen1(getcallerpc())
    	}
    
    	if et.Size_ == 0 {
    		if ptr == nil && len > 0 {
    			panicunsafeslicenilptr1(getcallerpc())
    		}
    	}
    
    	mem, overflow := math.MulUintptr(et.Size_, uintptr(len))
    	if overflow || mem > -uintptr(ptr) {
    		if ptr == nil {
    			panicunsafeslicenilptr1(getcallerpc())
    		}
    		panicunsafeslicelen1(getcallerpc())
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/runtime/asan.go

    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)
  4. test/runtime/inlinegcpc.go

    // license that can be found in the LICENSE file.
    
    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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 28 19:27:20 UTC 2019
    - 618 bytes
    - Viewed (0)
  5. src/runtime/os_solaris.go

    	// Leave caller's PC/SP around for traceback.
    	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
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. 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)
  7. src/runtime/sys_libc.go

    	// Leave caller's PC/SP/G around for traceback.
    	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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.int64tofloat64", 1},
    	{"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},
    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

    //
    // This must be deeply nosplit because there are untyped values on the
    // stack from debugCallV2.
    //
    //go:nosplit
    func debugCallWrap(dispatch uintptr) {
    	var lockedExt uint32
    	callerpc := getcallerpc()
    	gp := getg()
    
    	// Lock ourselves to the OS thread.
    	//
    	// Debuggers rely on us running on the same thread until we get to
    	// dispatch the function they asked as to.
    	//
    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/runtime/coro.go

    }
    
    //go:linkname newcoro
    
    // newcoro creates a new coro containing a
    // goroutine blocked waiting to run f
    // and returns that coro.
    func newcoro(f func(*coro)) *coro {
    	c := new(coro)
    	c.f = f
    	pc := getcallerpc()
    	gp := getg()
    	systemstack(func() {
    		mp := gp.m
    		start := corostart
    		startfv := *(**funcval)(unsafe.Pointer(&start))
    		gp = newproc1(startfv, gp, pc, true, waitReasonCoroutine)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top