Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,653 for mstart (0.55 sec)

  1. src/runtime/cgo/gcc_dragonfly_amd64.c

    	size_t size;
    	int err;
    
    	SIGFILLSET(ign);
    	pthread_sigmask(SIG_SETMASK, &ign, &oset);
    
    	pthread_attr_init(&attr);
    	pthread_attr_getstacksize(&attr, &size);
    
    	// Leave stacklo=0 and set stackhi=size; mstart will do the rest.
    	ts->g->stackhi = size;
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:39:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_openbsd.c

    	size_t size;
    	int err;
    
    	sigfillset(&ign);
    	pthread_sigmask(SIG_SETMASK, &ign, &oset);
    
    	pthread_attr_init(&attr);
    	pthread_attr_getstacksize(&attr, &size);
    
    	// Leave stacklo=0 and set stackhi=size; mstart will do the rest.
    	ts->g->stackhi = size;
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:56:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. src/runtime/cgo/gcc_darwin_amd64.c

    	pthread_sigmask(SIG_SETMASK, &ign, &oset);
    
    	size = pthread_get_stacksize_np(pthread_self());
    	pthread_attr_init(&attr);
    	pthread_attr_setstacksize(&attr, size);
    	// Leave stacklo=0 and set stackhi=size; mstart will do the rest.
    	ts->g->stackhi = size;
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:28 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_linux.c

    	size_t size;
    	int err;
    
    	sigfillset(&ign);
    	pthread_sigmask(SIG_SETMASK, &ign, &oset);
    
    	pthread_attr_init(&attr);
    	pthread_attr_getstacksize(&attr, &size);
    	// Leave stacklo=0 and set stackhi=size; mstart will do the rest.
    	ts->g->stackhi = size;
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:55:36 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. src/runtime/os_openbsd_syscall.go

    		tf_stack: uintptr(stk) - goarch.PtrSize,
    	}
    
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    	ret := retryOnEAGAIN(func() int32 {
    		errno := tfork(&param, unsafe.Sizeof(param), mp, mp.g0, abi.FuncPCABI0(mstart))
    		// tfork returns negative errno
    		return -errno
    	})
    	sigprocmask(_SIG_SETMASK, &oset, nil)
    
    	if ret != 0 {
    		print("runtime: failed to create new OS thread (have ", mcount()-1, " already; errno=", ret, ")\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_linux_arm64.c

    	size_t size;
    	int err;
    
    	sigfillset(&ign);
    	pthread_sigmask(SIG_SETMASK, &ign, &oset);
    
    	pthread_attr_init(&attr);
    	pthread_attr_getstacksize(&attr, &size);
    	// Leave stacklo=0 and set stackhi=size; mstart will do the rest.
    	ts->g->stackhi = size;
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. src/internal/abi/symtab.go

    	// UnsafePointRestart1(2) apply on a sequence of instructions, within
    	// which if an async preemption happens, we should back off the PC
    	// to the start of the sequence when resuming.
    	// We need two so we can distinguish the start/end of the sequence
    	// in case that two sequences are next to each other.
    	UnsafePointRestart1 = -3
    	UnsafePointRestart2 = -4
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 14:25:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_darwin_arm64.c

    	pthread_sigmask(SIG_SETMASK, &ign, &oset);
    
    	size = pthread_get_stacksize_np(pthread_self());
    	pthread_attr_init(&attr);
    	pthread_attr_setstacksize(&attr, size);
    	// Leave stacklo=0 and set stackhi=size; mstart will do the rest.
    	ts->g->stackhi = size;
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/runtime/os_netbsd.go

    // signal stack here before calling the regular mstart. It's a bit
    // baroque to remove a signal stack here only to add one in minit, but
    // it's a simple change that keeps NetBSD working like other OS's.
    // At this point all signals are blocked, so there is no race.
    //
    //go:nosplit
    func netbsdMstart0() {
    	st := stackt{ss_flags: _SS_DISABLE}
    	sigaltstack(&st, nil)
    	mstart0()
    }
    
    func osinit() {
    	ncpu = getncpu()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. src/runtime/asm_wasm.s

    	// be systemstack_switch if the G stack is scanned.
    	MOVD $runtime·systemstack_switch(SB), g_sched+gobuf_pc(g)
    
    	MOVD SP, g_sched+gobuf_sp(g)
    
    	// switch to g0
    	MOVD R2, g
    
    	// make it look like mstart called systemstack on g0, to stop traceback
    	I64Load (g_sched+gobuf_sp)(R2)
    	I64Const $8
    	I64Sub
    	Set R3
    
    	MOVD $runtime·mstart(SB), 0(R3)
    	MOVD R3, SP
    
    	// call fn
    	MOVD R0, CTXT
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:26:51 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top