Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,513 for minit (0.05 sec)

  1. src/runtime/cgo/gcc_windows_386.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 (
    		"movl %0, %%fs:0(%1)\n"	// MOVL tls0, 0(tls_g)(FS)
    		"movl %%fs:0(%1), %%eax\n"	// MOVL 0(tls_g)(FS), tmp
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:58 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/runtime/os_openbsd_syscall.go

    	}
    
    	// Stack pointer must point inside stack area (as marked with MAP_STACK),
    	// rather than at the top of it.
    	param := tforkt{
    		tf_tcb:   unsafe.Pointer(&mp.tls[0]),
    		tf_tid:   nil, // minit will record tid
    		tf_stack: uintptr(stk) - goarch.PtrSize,
    	}
    
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    	ret := retryOnEAGAIN(func() int32 {
    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_plan9.go

    // Called on the new thread, cannot allocate memory.
    func minit() {
    	if atomic.Load(&exiting) != 0 {
    		exits(&emptystatus[0])
    	}
    	// Mask all SSE floating-point exceptions
    	// when running on the 64-bit kernel.
    	setfpmasks()
    }
    
    // Called from dropm to undo the effect of an minit.
    func unminit() {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/runtime/os_linux.go

    // Called on the new thread, cannot allocate memory.
    func minit() {
    	minitSignals()
    
    	// Cgo-created threads and the bootstrap m are missing a
    	// procid. We need this for asynchronous preemption and it's
    	// useful in debuggers.
    	getg().m.procid = uint64(gettid())
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  5. src/runtime/os_windows.go

    // Called on the new thread, cannot allocate Go memory.
    func minit() {
    	var thandle uintptr
    	if stdcall7(_DuplicateHandle, currentProcess, currentThread, currentProcess, uintptr(unsafe.Pointer(&thandle)), 0, 0, _DUPLICATE_SAME_ACCESS) == 0 {
    		print("runtime.minit: duplicatehandle failed; errno=", getlasterror(), "\n")
    		throw("runtime.minit: duplicatehandle failed")
    	}
    
    	mp := getg().m
    	lock(&mp.threadLock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  6. src/runtime/sys_solaris_amd64.s

    TEXT runtime·settls(SB),NOSPLIT,$8
    	RET
    
    // void libc_miniterrno(void *(*___errno)(void));
    //
    // Set the TLS errno pointer in M.
    //
    // Called using runtime·asmcgocall from os_solaris.c:/minit.
    // NOT USING GO CALLING CONVENTION.
    TEXT runtime·miniterrno(SB),NOSPLIT,$0
    	// asmcgocall will put first argument into DI.
    	CALL	DI	// SysV ABI so returns in AX
    	get_tls(CX)
    	MOVQ	g(CX), BX
    	MOVQ	g_m(BX), BX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:29:00 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    	// and let mstart0 exit the thread.
    	gp.sched.g = guintptr(unsafe.Pointer(gp))
    	gp.sched.pc = getcallerpc()
    	gp.sched.sp = getcallersp()
    
    	asminit()
    	minit()
    
    	// Install signal handlers; after minit so that minit can
    	// prepare the thread to be able to handle the signals.
    	if gp.m == &m0 {
    		mstartm0()
    	}
    
    	if fn := gp.m.mstartfn; fn != nil {
    		fn()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. src/runtime/signal_unix.go

    		if !blockableSig(uint32(i)) {
    			sigdelset(&nmask, i)
    		}
    	}
    	sigprocmask(_SIG_SETMASK, &nmask, nil)
    }
    
    // unminitSignals is called from dropm, via unminit, to undo the
    // effect of calling minit on a non-Go thread.
    //
    //go:nosplit
    func unminitSignals() {
    	if getg().m.newSigstack {
    		st := stackt{ss_flags: _SS_DISABLE}
    		sigaltstack(&st, nil)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/pe.go

    	// thread.
    	//
    	// For other threads, the runtime explicitly asks the kernel
    	// to use the default stack size so that all stacks are
    	// consistent.
    	//
    	// At thread start, in minit, the runtime queries the OS for
    	// the actual stack bounds so that the stack size doesn't need
    	// to be hard-coded into the runtime.
    	oh64.SizeOfStackReserve = 0x00200000
    	if !iscgo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  10. src/runtime/runtime2.go

    	locks         int32
    	dying         int32
    	profilehz     int32
    	spinning      bool // m is out of work and is actively looking for work
    	blocked       bool // m is blocked on a note
    	newSigstack   bool // minit on C thread called sigaltstack
    	printlock     int8
    	incgo         bool          // m is executing a cgo call
    	isextra       bool          // m is an extra m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top