Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,513 for minit (0.04 sec)

  1. src/runtime/os_wasm.go

    }
    
    // Called to initialize a new m (including the bootstrap m).
    // Called on the new thread, cannot allocate memory.
    func minit() {
    }
    
    // Called from dropm to undo the effect of an minit.
    func unminit() {
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    // resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
    func mdestroy(mp *m) {
    }
    
    // wasm has no signals
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/runtime/os_aix.go

    	r, _ := syscall0(&libc__Errno)
    	mp.perrno = r
    
    }
    
    func minit() {
    	miniterrno()
    	minitSignals()
    	getg().m.procid = uint64(pthread_self())
    }
    
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    // resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
    func mdestroy(mp *m) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/runtime/os_dragonfly.go

    // Called on the new thread, cannot allocate memory.
    func minit() {
    	getg().m.procid = uint64(lwp_gettid())
    	minitSignals()
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    // resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/runtime/os_netbsd.go

    // created thread. On NetBSD, a new thread inherits the signal stack
    // of the creating thread. That confuses minit, so we remove that
    // 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.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. src/runtime/cgo/gcc_netbsd.c

    	ts = *(ThreadStart*)v;
    	free(v);
    
    	// On NetBSD, a new thread inherits the signal stack of the
    	// creating thread. That confuses minit, so we remove that
    	// 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:55:51 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_windows_amd64.c

    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    	// minit queries stack bounds from the OS.
    
    	/*
    	 * Set specific keys in thread local storage.
    	 */
    	asm volatile (
    	  "movq %0, %%gs:0(%1)\n"	// MOVL tls0, 0(tls_g)(GS)
    	  :: "r"(ts.tls), "r"(*tls_g)
    	);
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:28 UTC 2023
    - 1K bytes
    - Viewed (0)
  7. src/runtime/os3_solaris.go

    // Called on the new thread, cannot allocate memory.
    func minit() {
    	asmcgocall(unsafe.Pointer(abi.FuncPCABI0(miniterrno)), unsafe.Pointer(&libc____errno))
    
    	minitSignals()
    
    	getg().m.procid = uint64(pthread_self())
    }
    
    // Called from dropm to undo the effect of an minit.
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/runtime/os_openbsd.go

    // Called on the new thread, can not allocate memory.
    func minit() {
    	getg().m.procid = uint64(getthrid())
    	minitSignals()
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    // resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. src/runtime/os_darwin.go

    // Called on the new thread, cannot allocate memory.
    func minit() {
    	// iOS does not support alternate signal stack.
    	// The signal handler handles it directly.
    	if !(GOOS == "ios" && GOARCH == "arm64") {
    		minitSignalStack()
    	}
    	minitSignalMask()
    	getg().m.procid = uint64(pthread_self())
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. src/runtime/os_freebsd.go

    		sigaltstack(&st, nil)
    	}
    
    	minitSignals()
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    // resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
    func mdestroy(mp *m) {
    }
    
    func sigtramp()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top