Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for newosproc (0.16 sec)

  1. src/runtime/os_aix.go

    	ncpu = int32(sysconf(__SC_NPROCESSORS_ONLN))
    	physPageSize = sysconf(__SC_PAGE_SIZE)
    }
    
    // newosproc0 is a version of newosproc that can be called before the runtime
    // is initialized.
    //
    // This function is not safe to use after initialization as it does not pass an M as fnarg.
    //
    //go:nosplit
    func newosproc0(stacksize uintptr, fn *funcDescriptor) {
    	var (
    		attr pthread_attr
    		oset sigset
    		tid  pthread
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. src/runtime/os_wasm.go

    }
    
    func crash() {
    	*(*int32)(nil) = 0
    }
    
    func initsig(preinit bool) {
    }
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	throw("newosproc: not implemented")
    }
    
    //go:linkname os_sigpipe os.sigpipe
    func os_sigpipe() {
    	throw("too many writes on closed pipe")
    }
    
    //go:linkname syscall_now syscall.now
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/runtime/os_netbsd.go

    		})
    	}
    }
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	stk := unsafe.Pointer(mp.g0.stack.hi)
    	if false {
    		print("newosproc stk=", stk, " m=", mp, " g=", mp.g0, " id=", mp.id, " ostk=", &mp, "\n")
    	}
    
    	var uc ucontextt
    	getcontext(unsafe.Pointer(&uc))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. src/runtime/os_plan9.go

    	exits(&status[0])
    }
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	if false {
    		print("newosproc mp=", mp, " ostk=", &mp, "\n")
    	}
    	pid := rfork(_RFPROC | _RFMEM | _RFNOWAIT)
    	if pid < 0 {
    		throw("newosproc: rfork failed")
    	}
    	if pid == 0 {
    		tstart_plan9(mp)
    	}
    }
    
    func exitThread(wait *atomic.Uint32) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. src/runtime/os_linux.go

    		if ret == _EAGAIN {
    			println("runtime: may need to increase max user processes (ulimit -u)")
    		}
    		throw("newosproc")
    	}
    }
    
    // Version of newosproc that doesn't require a valid G.
    //
    //go:nosplit
    func newosproc0(stacksize uintptr, fn unsafe.Pointer) {
    	stack := sysAlloc(stacksize, &memstats.stacks_sys)
    	if stack == nil {
    		writeErrStr(failallocatestack)
    		exit(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  6. src/runtime/os3_solaris.go

    	if physPageSize == 0 {
    		physPageSize = getPageSize()
    	}
    }
    
    func tstart_sysvicall(newm *m) uint32
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	var (
    		attr pthreadattr
    		oset sigset
    		tid  pthread
    		ret  int32
    		size uint64
    	)
    
    	if pthread_attr_init(&attr) != 0 {
    		throw("pthread_attr_init")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/runtime/os_windows.go

    //
    //go:nowritebarrierrec
    //go:nosplit
    func newosproc0(mp *m, stk unsafe.Pointer) {
    	// TODO: this is completely broken. The args passed to newosproc0 (in asm_amd64.s)
    	// are stacksize and function, not *m and stack.
    	// Check os_linux.go for an implementation that might actually work.
    	throw("bad newosproc0")
    }
    
    func exitThread(wait *atomic.Uint32) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  8. src/runtime/proc.go

    	// behaviour around exec'ing while creating/destroying threads. See
    	// issue #19546.
    	execLock rwmutex
    )
    
    // These errors are reported (via writeErrStr) by some OS-specific
    // versions of newosproc and newosproc0.
    const (
    	failthreadcreate  = "runtime: failed to create new OS thread\n"
    	failallocatestack = "runtime: failed to allocate stack for the new OS thread\n"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_windows.go

    	procWSARecv                            = modws2_32.NewProc("WSARecv")
    	procWSARecvFrom                        = modws2_32.NewProc("WSARecvFrom")
    	procWSASend                            = modws2_32.NewProc("WSASend")
    	procWSASendTo                          = modws2_32.NewProc("WSASendTo")
    	procWSAStartup                         = modws2_32.NewProc("WSAStartup")
    	procbind                               = modws2_32.NewProc("bind")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  10. src/internal/syscall/windows/zsyscall_windows.go

    	procOpenThreadToken                   = modadvapi32.NewProc("OpenThreadToken")
    	procQueryServiceStatus                = modadvapi32.NewProc("QueryServiceStatus")
    	procRevertToSelf                      = modadvapi32.NewProc("RevertToSelf")
    	procSetTokenInformation               = modadvapi32.NewProc("SetTokenInformation")
    	procProcessPrng                       = modbcryptprimitives.NewProc("ProcessPrng")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top