Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 119 for Setg (0.3 sec)

  1. src/runtime/os_dragonfly.go

    // Called to initialize a new m (including the bootstrap m).
    // 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. src/runtime/os_freebsd.go

    	// FreeBSD users are running a patched kernel. See issue #15658.
    	if gp := getg(); !isarchive && !islibrary && gp.m == &m0 && gp == gp.m.g0 {
    		st := stackt{ss_flags: _SS_DISABLE}
    		sigaltstack(&st, nil)
    	}
    
    	minitSignals()
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  3. src/runtime/cgo.go

    // so it emits the test and keeps the call, giving the desired
    // escape analysis result. The test is cheaper than the call.
    var cgoAlwaysFalse bool
    
    var cgo_yield = &_cgo_yield
    
    func cgoNoCallback(v bool) {
    	g := getg()
    	if g.nocgocallback && v {
    		panic("runtime: unexpected setting cgoNoCallback")
    	}
    	g.nocgocallback = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/runtime/mcheckmark.go

    		print("runtime: found obj at *(", hex(base), "+", hex(off), ")\n")
    
    		// Dump the source (base) object
    		gcDumpObject("base", base, off)
    
    		// Dump the object
    		gcDumpObject("obj", obj, ^uintptr(0))
    
    		getg().m.traceback = 2
    		throw("checkmark found unmarked object")
    	}
    
    	ai := arenaIndex(obj)
    	arena := mheap_.arenas[ai.l1()][ai.l2()]
    	arenaWord := (obj / heapArenaBytes / 8) % uintptr(len(arena.checkmarks.b))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/runtime/os3_solaris.go

    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
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/runtime/time.go

    	if t.ts != nil {
    		assertLockHeld(&t.ts.mu)
    	}
    	if raceenabled {
    		// Note that we are running on a system stack,
    		// so there is no chance of getg().m being reassigned
    		// out from under us while this function executes.
    		tsLocal := &getg().m.p.ptr().timers
    		if tsLocal.raceCtx == 0 {
    			tsLocal.raceCtx = racegostart(abi.FuncPCABIInternal((*timers).run) + sys.PCQuantum)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  7. src/runtime/atomic_pointer.go

    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname atomicwb
    //go:nosplit
    func atomicwb(ptr *unsafe.Pointer, new unsafe.Pointer) {
    	slot := (*uintptr)(unsafe.Pointer(ptr))
    	buf := getg().m.p.ptr().wbBuf.get2()
    	buf[0] = *slot
    	buf[1] = uintptr(new)
    }
    
    // atomicstorep performs *ptr = new atomically and invokes a write barrier.
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/runtime/netpoll_windows.go

    func netpoll(delay int64) (gList, int32) {
    	if iocphandle == _INVALID_HANDLE_VALUE {
    		return gList{}, 0
    	}
    
    	var entries [64]overlappedEntry
    	var wait uint32
    	var toRun gList
    	mp := getg().m
    
    	if delay >= 1e15 {
    		// An arbitrary cap on how long to wait for a timer.
    		// 1e15 ns == ~11.5 days.
    		delay = 1e15
    	}
    
    	if delay > 0 && mp.waitIocpHandle != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/testprog/cpu-profile.go

    	}
    	// Examine the CPU profiler's view. Filter it to only include samples from
    	// the single test goroutine. Use labels to execute that filter: they should
    	// apply to all work done while that goroutine is getg().m.curg, and they
    	// should apply to no other goroutines.
    	pprofStacks := make(map[string]int)
    	for _, s := range prof.Sample {
    		if s.Label["tracing"] != nil {
    			var fns []string
    			var leaf string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. src/runtime/mgc.go

    			// mark using checkmark bits, to check that we
    			// didn't forget to mark anything during the
    			// concurrent mark process.
    			startCheckmarks()
    			gcResetMarkState()
    			gcw := &getg().m.p.ptr().gcw
    			gcDrain(gcw, 0)
    			wbBufFlush1(getg().m.p.ptr())
    			gcw.dispose()
    			endCheckmarks()
    		}
    
    		// marking is complete so we can turn the write barrier off
    		setGCPhase(_GCoff)
    		stwSwept = gcSweep(work.mode)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
Back to top