Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for newosproc (0.15 sec)

  1. src/runtime/os_openbsd_libc.go

    )
    
    // mstart_stub provides glue code to call mstart from pthread_create.
    func mstart_stub()
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrierrec
    func newosproc(mp *m) {
    	if false {
    		print("newosproc m=", mp, " g=", mp.g0, " id=", mp.id, " ostk=", &mp, "\n")
    	}
    
    	// Initialize an attribute object.
    	var attr pthreadattr
    	if err := pthread_attr_init(&attr); err != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. src/runtime/os_openbsd_syscall.go

    //go:noescape
    func tfork(param *tforkt, psize uintptr, mm *m, gg *g, fn uintptr) int32
    
    // 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")
    	}
    
    	// Stack pointer must point inside stack area (as marked with MAP_STACK),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/runtime/os_freebsd.go

    	sigprocmask(_SIG_SETMASK, &oset, nil)
    	if ret != 0 {
    		print("runtime: failed to create new OS thread (have ", mcount(), " already; errno=", ret, ")\n")
    		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: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. src/runtime/os_darwin.go

    		exit(1)
    	}
    }
    
    // glue code to call mstart from pthread_create.
    func mstart_stub()
    
    // 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 uintptr) {
    	// Initialize an attribute object.
    	var attr pthreadattr
    	var err int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. 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)
  8. src/runtime/os_dragonfly.go

    	})
    }
    
    func lwp_start(uintptr)
    
    // 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, " lwp_start=", abi.FuncPCABI0(lwp_start), " id=", mp.id, " ostk=", &mp, "\n")
    	}
    
    	var oset sigset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top