- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 821 for getT (0.07 sec)
-
src/runtime/coro.go
// and then calls coroexit to remove the extra concurrency. func corostart() { gp := getg() c := gp.coroarg gp.coroarg = nil defer coroexit(c) c.f(c) } // coroexit is like coroswitch but closes the coro // and exits the current goroutine func coroexit(c *coro) { gp := getg() gp.coroarg = c gp.coroexit = true mcall(coroswitch_m) } //go:linkname coroswitch
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:18 UTC 2024 - 7.4K bytes - Viewed (0) -
src/runtime/HACKING.md
so their memory remains type stable. As a result, the runtime can avoid write barriers in the depths of the scheduler. `getg()` and `getg().m.curg` ---------------------------- To get the current user `g`, use `getg().m.curg`. `getg()` alone returns the current `g`, but when executing on the system or signal stacks, this will return the current M's "g0" or
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.9K bytes - Viewed (0) -
src/runtime/debug.go
// // Ensure mayMoreStackPreempt can be called for all ABIs. // //go:nosplit //go:linkname mayMoreStackPreempt func mayMoreStackPreempt() { // Don't do anything on the g0 or gsignal stack. gp := getg() if gp == gp.m.g0 || gp == gp.m.gsignal { return } // Force a preemption, unless the stack is already poisoned. if gp.stackguard0 < stackPoisonMin { gp.stackguard0 = stackPreempt } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 20:38:24 UTC 2024 - 4.2K bytes - Viewed (0) -
src/runtime/proc.go
// - fortio.org/log // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname getm func getm() uintptr { return uintptr(unsafe.Pointer(getg().m)) } var ( // Locking linked list of extra M's, via mp.schedlink. Must be accessed // only via lockextra/unlockextra. // // Can't be atomic.Pointer[m] because we use an invalid pointer as a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0) -
src/runtime/tracestack.go
// symbolizer. pcBuf[0] = logicalStackSentinel if getg() == gp { nstk += callers(skip+1, pcBuf[1:]) } else if gp != nil { nstk += gcallers(gp, skip, pcBuf[1:]) } } else { // Fast path: Unwind using frame pointers. pcBuf[0] = uintptr(skip) if getg() == gp { nstk += fpTracebackPCs(unsafe.Pointer(getfp()), pcBuf[1:]) } else if gp != nil { // Three cases:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:56 UTC 2024 - 11K bytes - Viewed (0) -
src/runtime/os_darwin.go
minitSignalStack() } minitSignalMask() getg().m.procid = uint64(pthread_self()) } // Called from dropm to undo the effect of an minit. // //go:nosplit func unminit() { // iOS does not support alternate signal stack. // See minit. if !(GOOS == "ios" && GOARCH == "arm64") { 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.9K bytes - Viewed (0) -
src/runtime/signal_unix.go
// sigpanic calls can be injected. // // The signal handler must not inject a call to sigpanic if // getg().throwsplit, since sigpanic may need to grow the stack. // // This is exported via linkname to assembly in runtime/cgo. // //go:linkname sigpanic func sigpanic() { gp := getg() if !canpanic() { throw("unexpected signal during runtime execution") } switch gp.sig { case _SIGBUS:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 16:04:54 UTC 2024 - 45K bytes - Viewed (0) -
src/runtime/panic.go
if goarch.IsWasm == 0 && stringslite.HasPrefix(funcname(findfunc(pc)), "runtime.") { // Note: wasm can't tail call, so we can't get the original caller's pc. throw(msg) } // TODO: is this redundant? How could we be in malloc // but not in the runtime? runtime/internal/*, maybe? gp := getg() if gp != nil && gp.m != nil && gp.m.mallocing != 0 { throw(msg) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy
abstract boolean isSupportsBuildOperations() abstract DomainObjectCollection<T> getContainer() abstract T getA() abstract T getB() abstract T getC() abstract <S extends T> S getD() Class<T> getType() { return a.class } @SuppressWarnings("GrUnnecessaryPublicModifier") public <S extends T> Class<S> getOtherType() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 13:46:07 UTC 2024 - 52.4K bytes - Viewed (0) -
src/runtime/export_debuglog_test.go
func (l *dlogger) P(x any) *dlogger { return l.p(x) } func (l *dlogger) S(x string) *dlogger { return l.s(x) } func (l *dlogger) PC(x uintptr) *dlogger { return l.pc(x) } func DumpDebugLog() string { gp := getg() gp.writebuf = make([]byte, 0, 1<<20) printDebugLog() buf := gp.writebuf gp.writebuf = nil return string(buf) } func ResetDebugLog() { stw := stopTheWorld(stwForTestResetDebugLog)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 15 16:49:45 UTC 2023 - 1.3K bytes - Viewed (0)