Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for heapBitsInSpan (0.17 sec)

  1. src/runtime/msize.go

    func roundupsize(size uintptr, noscan bool) (reqSize uintptr) {
    	reqSize = size
    	if reqSize <= maxSmallSize-mallocHeaderSize {
    		// Small object.
    		if !noscan && reqSize > minSizeForMallocHeader { // !noscan && !heapBitsInSpan(reqSize)
    			reqSize += mallocHeaderSize
    		}
    		// (reqSize - size) is either mallocHeaderSize or 0. We need to subtract mallocHeaderSize
    		// from the result if we have one, since mallocgc will add it back in.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top