- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for allocBlock (0.72 sec)
-
src/cmd/compile/internal/ssa/debug.go
blockDebug []BlockDebug pendingSlotLocs []VarLoc partsByVarOffset sort.Interface } func (state *debugState) initializeCache(f *Func, numVars, numSlots int) { // One blockDebug per block. Initialized in allocBlock. if cap(state.blockDebug) < f.NumBlocks() { state.blockDebug = make([]BlockDebug, f.NumBlocks()) } else { // This local variable, and the ones like it below, enable compiler // optimizations. Don't inline them.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 58.4K bytes - Viewed (0) -
src/runtime/os_linux.go
// created in allocm will eventually reach OS thread clone later in // newm. // 3. We take allocmLock for write here to prevent allocation of new Ms // while this function runs. Per (1), this prevents clone of OS // threads that are not yet in allm. allocmLock.lock() // Disable preemption, preventing us from changing Ms, as we handle // this M specially. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.9K bytes - Viewed (0) -
src/runtime/rwmutex.go
readRank lockRank // semantic lock rank for read locking } // Lock ranking an rwmutex has two aspects: // // Semantic ranking: this rwmutex represents some higher level lock that // protects some resource (e.g., allocmLock protects creation of new Ms). The // read and write locks of that resource need to be represented in the lock // rank. // // Internal ranking: as an implementation detail, rwmutex uses two mutexes:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 14:29:04 UTC 2024 - 5K bytes - Viewed (0) -
src/runtime/proc.go
func addExtraM(mp *m) { mnext := lockextra(true) mp.schedlink.set(mnext) unlockextra(mp, 1) } var ( // allocmLock is locked for read when creating new Ms in allocm and their // addition to allm. Thus acquiring this lock for write blocks the // creation of new Ms. allocmLock rwmutex // execLock serializes exec and clone to avoid bugs or unspecified
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0)