Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for persistentalloc1 (0.6 sec)

  1. src/runtime/iface.go

    	lock(&itabLock)
    	if m = itabTable.find(inter, typ); m != nil {
    		unlock(&itabLock)
    		goto finish
    	}
    
    	// Entry doesn't exist yet. Make a new entry & add it.
    	m = (*itab)(persistentalloc(unsafe.Sizeof(itab{})+uintptr(len(inter.Methods)-1)*goarch.PtrSize, 0, &memstats.other_sys))
    	m.Inter = inter
    	m.Type = typ
    	// The hash is used in type switches. However, compiler statically generates itab's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/inline/inlheur/scoring.go

    // Score  Adjustment  Status  Callee  CallerPos ScoreFlags
    // 115    40          DEMOTED cmd/compile/internal/abi.(*ABIParamAssignment).Offset     expand_calls.go:1679:14|6       panicPathAdj
    // 76     -5n         PROMOTED runtime.persistentalloc   mcheckmark.go:48:45|3   inLoopAdj
    // 201    0           --- PGO  unicode.DecodeRuneInString        utf8.go:312:30|1
    // 7      -5          --- PGO  internal/abi.Name.DataChecked     type.go:625:22|0        inLoopAdj
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. src/runtime/netpoll.go

    		const pdSize = unsafe.Sizeof(pollDesc{})
    		n := pollBlockSize / pdSize
    		if n == 0 {
    			n = 1
    		}
    		// Must be in non-GC memory because can be referenced
    		// only from epoll/kqueue internals.
    		mem := persistentalloc(n*pdSize, 0, &memstats.other_sys)
    		for i := uintptr(0); i < n; i++ {
    			pd := (*pollDesc)(add(mem, i*pdSize))
    			lockInit(&pd.lock, lockRankPollDesc)
    			pd.rt.init(nil, nil)
    			pd.wt.init(nil, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. src/runtime/runtime2.go

    		len int
    		buf [128]*mspan
    	}
    
    	// Cache of a single pinner object to reduce allocations from repeated
    	// pinner creation.
    	pinnerCache *pinner
    
    	trace pTraceState
    
    	palloc persistentAlloc // per-P to avoid mutex
    
    	// Per-P GC state
    	gcAssistTime         int64 // Nanoseconds in assistAlloc
    	gcFractionalMarkTime int64 // Nanoseconds in fractional mark worker (atomic)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  5. src/runtime/mprof.go

    	default:
    		throw("invalid profile bucket type")
    	case memProfile:
    		size += unsafe.Sizeof(memRecord{})
    	case blockProfile, mutexProfile:
    		size += unsafe.Sizeof(blockRecord{})
    	}
    
    	b := (*bucket)(persistentalloc(size, 0, &memstats.buckhash_sys))
    	b.typ = typ
    	b.nstk = uintptr(nstk)
    	return b
    }
    
    // stk returns the slice in b holding the stack. The caller can asssume that the
    // backing array is immutable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  6. src/runtime/mbitmap.go

    // The resulting bitvector will have no more than size/goarch.PtrSize bits.
    func progToPointerMask(prog *byte, size uintptr) bitvector {
    	n := (size/goarch.PtrSize + 7) / 8
    	x := (*[1 << 30]byte)(persistentalloc(n+1, 1, &memstats.buckhash_sys))[:n+1]
    	x[len(x)-1] = 0xa1 // overflow check sentinel
    	n = runGCProg(prog, &x[0])
    	if x[len(x)-1] != 0xa1 {
    		throw("progToPointerMask: overflow")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
Back to top