Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for reentersyscall (0.15 sec)

  1. src/runtime/cgocall.go

    	// used again if callback decide to make syscall.
    	winsyscall := gp.m.winsyscall
    
    	// entersyscall saves the caller's SP to allow the GC to trace the Go
    	// stack. However, since we're returning to an earlier stack frame and
    	// need to pair with the entersyscall() call made by cgocall, we must
    	// save syscall* and let reentersyscall restore them.
    	savedsp := unsafe.Pointer(gp.syscallsp)
    	savedpc := gp.syscallpc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. src/runtime/proc.go

    // not from the low-level system calls used by the runtime.
    //
    // Entersyscall cannot split the stack: the save must
    // make g->sched refer to the caller's stack segment, because
    // entersyscall is going to return immediately after.
    //
    // Nothing entersyscall calls can split the stack either.
    // We cannot safely move the stack during an active call to syscall,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    	runtime.EnterSyscall()
    	r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_MUNMAP<<4, uintptr(addr), uintptr(length))
    	runtime.ExitSyscall()
    	if int64(r0) == -1 {
    		err = errnoErr2(e1, e2)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func ioctl(fd int, req int, arg uintptr) (err error) {
    	runtime.EnterSyscall()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  4. src/runtime/norace_test.go

    // The file contains tests that cannot run under race detector for some reason.
    //
    //go:build !race
    
    package runtime_test
    
    import (
    	"runtime"
    	"testing"
    )
    
    // Syscall tests split stack between Entersyscall and Exitsyscall under race detector.
    func BenchmarkSyscall(b *testing.B) {
    	benchmarkSyscall(b, 0, 1)
    }
    
    func BenchmarkSyscallWork(b *testing.B) {
    	benchmarkSyscall(b, 100, 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 983 bytes
    - Viewed (0)
  5. src/runtime/sys_openbsd3.go

    func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
    	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))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/gccgo.go

    func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) {
    	syscall.Entersyscall()
    	r := realSyscallNoError(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0)
    	syscall.Exitsyscall()
    	return r, 0
    }
    
    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
    	syscall.Entersyscall()
    	r, errno := realSyscall(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0)
    	syscall.Exitsyscall()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/runtime/sys_darwin.go

    //
    //go:linkname syscall_syscall syscall.syscall
    //go:nosplit
    func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
    	args := struct{ fn, a1, a2, a3, r1, r2, err uintptr }{fn, a1, a2, a3, r1, r2, err}
    	entersyscall()
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall)), unsafe.Pointer(&args))
    	exitsyscall()
    	return args.r1, args.r2, args.err
    }
    func syscall()
    
    //go:linkname syscall_syscallX syscall.syscallX
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    }
    
    func Close(fd int) (err error) {
    	runtime.EnterSyscall()
    	r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_CLOSE<<4, uintptr(fd))
    	runtime.ExitSyscall()
    	for i := 0; e1 == EAGAIN && i < 10; i++ {
    		runtime.EnterSyscall()
    		CallLeFuncWithErr(GetZosLibVec()+SYS_USLEEP<<4, uintptr(10))
    		runtime.ExitSyscall()
    		runtime.EnterSyscall()
    		r0, e2, e1 = CallLeFuncWithErr(GetZosLibVec()+SYS_CLOSE<<4, uintptr(fd))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  9. src/runtime/sys_plan9_amd64.s

    TEXT errstr<>(SB),NOSPLIT,$0
    	MOVQ    $41, BP
    	SYSCALL
    	RET
    
    // func errstr() string
    // Only used by package syscall.
    // Grab error string due to a syscall made
    // in entersyscall mode, without going
    // through the allocator (issue 4994).
    // See ../syscall/asm_plan9_amd64.s:/·Syscall/
    TEXT runtime·errstr(SB),NOSPLIT,$16-16
    	get_tls(AX)
    	MOVQ	g(AX), BX
    	MOVQ	g_m(BX), BX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 16:41:22 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. src/runtime/sys_plan9_386.s

    TEXT errstr<>(SB),NOSPLIT,$0
    	MOVL    $41, AX
    	INT     $64
    	RET
    
    // func errstr() string
    // Only used by package syscall.
    // Grab error string due to a syscall made
    // in entersyscall mode, without going
    // through the allocator (issue 4994).
    // See ../syscall/asm_plan9_386.s:/·Syscall/
    TEXT runtime·errstr(SB),NOSPLIT,$8-8
    	get_tls(AX)
    	MOVL	g(AX), BX
    	MOVL	g_m(BX), BX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:12:04 UTC 2021
    - 4.5K bytes
    - Viewed (0)
Back to top