Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for mstartm0 (0.16 sec)

  1. src/runtime/proc.go

    // so that we can set up g0.sched to return to the call of mstart1 above.
    //
    //go:noinline
    func mstart1() {
    	gp := getg()
    
    	if gp != gp.m.g0 {
    		throw("bad runtime·mstart")
    	}
    
    	// Set up m.g0.sched as a label returning to just
    	// after the mstart1 call in mstart0 above, for use by goexit0 and mcall.
    	// We're never coming back to mstart1 after we call schedule,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. src/runtime/os_openbsd_libc.go

    		exit(1)
    	}
    	mp.g0.stack.hi = stacksize // for mstart
    
    	// Tell the pthread library we won't join with this thread.
    	if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    
    	// Finally, create the thread. It starts at mstart_stub, which does some low-level
    	// setup and then calls mstart.
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/link/internal/benchmark/bench.go

    		totTime += dur
    		fmt.Fprintf(w, "%s 1 %d ns/op", makeBenchString(curMark.name+gcString), dur.Nanoseconds())
    		fmt.Fprintf(w, "\t%d B/op", curMark.endM.TotalAlloc-curMark.startM.TotalAlloc)
    		fmt.Fprintf(w, "\t%d allocs/op", curMark.endM.Mallocs-curMark.startM.Mallocs)
    		if m.gc == GC {
    			fmt.Fprintf(w, "\t%d live-B", curMark.gcM.HeapAlloc)
    		} else {
    			fmt.Fprintf(w, "\t%d heap-B", curMark.endM.HeapAlloc)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. src/runtime/os_darwin.go

    		exit(1)
    	}
    	mp.g0.stack.hi = stacksize // for mstart
    
    	// Tell the pthread library we won't join with this thread.
    	if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    
    	// Finally, create the thread. It starts at mstart_stub, which does some low-level
    	// setup and then calls mstart.
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_netbsd.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:51 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_freebsd.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:40:00 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_linux_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 22 22:06:46 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/cmd/internal/objabi/funcid.go

    	"handleAsyncEvent":   abi.FuncID_handleAsyncEvent,
    	"main":               abi.FuncID_runtime_main,
    	"mcall":              abi.FuncID_mcall,
    	"morestack":          abi.FuncID_morestack,
    	"mstart":             abi.FuncID_mstart,
    	"panicwrap":          abi.FuncID_panicwrap,
    	"runfinq":            abi.FuncID_runfinq,
    	"sigpanic":           abi.FuncID_sigpanic,
    	"systemstack_switch": abi.FuncID_systemstack_switch,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 21:33:59 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. 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)
Back to top