Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for libcCall (0.11 sec)

  1. src/runtime/sys_darwin.go

    //go:cgo_unsafe_args
    func pthread_attr_init(attr *pthreadattr) int32 {
    	ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_init_trampoline)), unsafe.Pointer(&attr))
    	KeepAlive(attr)
    	return ret
    }
    func pthread_attr_init_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func pthread_attr_getstacksize(attr *pthreadattr, size *uintptr) int32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. src/runtime/sys_openbsd3.go

    	entersyscall()
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall)), unsafe.Pointer(&fn))
    	exitsyscall()
    	return
    }
    func syscall()
    
    //go:linkname syscall_syscallX syscall.syscallX
    //go:nosplit
    //go:cgo_unsafe_args
    func syscall_syscallX(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
    	entersyscall()
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(syscallX)), unsafe.Pointer(&fn))
    	exitsyscall()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/runtime/os_windows.go

    //
    //go:nosplit
    func stdcall_no_g(fn stdFunction, n int, args uintptr) uintptr {
    	libcall := libcall{
    		fn:   uintptr(unsafe.Pointer(fn)),
    		n:    uintptr(n),
    		args: args,
    	}
    	asmstdcall_trampoline(noescape(unsafe.Pointer(&libcall)))
    	return libcall.r1
    }
    
    // Calling stdcall on os stack.
    // May run during STW, so write barriers are not allowed.
    //
    //go:nowritebarrier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  4. src/runtime/runtime2.go

    	freelink    *m // on sched.freem
    	trace       mTraceState
    
    	// these are here because they are too large to be on the stack
    	// of low-level NOSPLIT functions.
    	libcall    libcall
    	libcallpc  uintptr // for cpu profiler
    	libcallsp  uintptr
    	libcallg   guintptr
    	winsyscall winlibcall // stores syscall parameters on windows
    
    	vdsoSP uintptr // SP for traceback while in VDSO call (0 if not in call)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  5. src/runtime/stack.go

    	}
    	if !isShrinkStackSafe(gp) {
    		throw("shrinkstack at bad time")
    	}
    	// Check for self-shrinks while in a libcall. These may have
    	// pointers into the stack disguised as uintptrs, but these
    	// code paths should all be nosplit.
    	if gp == getg().m.curg && gp.m.libcallsp != 0 {
    		throw("shrinking stack in libcall")
    	}
    
    	if debug.gcshrinkstackoff > 0 {
    		return
    	}
    	f := findfunc(gp.startpc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. src/runtime/traceback.go

    // rewind it into the CALL instruction.)
    // If gp.m.libcall{g,pc,sp} information is available, it uses that information in preference to
    // the pc/sp/lr passed in.
    func tracebacktrap(pc, sp, lr uintptr, gp *g) {
    	if gp.m.libcallsp != 0 {
    		// We're in C code somewhere, traceback from the saved position.
    		traceback1(gp.m.libcallpc, gp.m.libcallsp, 0, gp.m.libcallg.ptr(), 0)
    		return
    	}
    	traceback1(pc, sp, lr, gp, unwindTrap)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    		u.initAt(mp.curg.syscallpc, mp.curg.syscallsp, 0, mp.curg, unwindSilentErrors)
    	} else if usesLibcall() && mp.libcallg != 0 && mp.libcallpc != 0 && mp.libcallsp != 0 {
    		// Libcall, i.e. runtime syscall on windows.
    		// Collect Go stack that leads to the call.
    		u.initAt(mp.libcallpc, mp.libcallsp, 0, mp.libcallg.ptr(), unwindSilentErrors)
    	} else if mp != nil && mp.vdsoSP != 0 {
    		// VDSO call, e.g. nanotime1 on Linux.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top