Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for nextFreeFast (0.12 sec)

  1. src/cmd/compile/internal/test/inl_test.go

    		// nextFreeFast calls sys.TrailingZeros64, which on 386 is implemented in asm and is not inlinable.
    		// We currently don't have midstack inlining so nextFreeFast is also not inlinable on 386.
    		// On loong64, mips64x and riscv64, TrailingZeros64 is not intrinsified and causes nextFreeFast
    		// too expensive to inline (Issue 22239).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/runtime/malloc.go

    		}
    		sysHugePage(unsafe.Pointer(l2), unsafe.Sizeof(*l2))
    	}
    }
    
    // base address for all 0-byte allocations
    var zerobase uintptr
    
    // nextFreeFast returns the next free object if one is quickly available.
    // Otherwise it returns 0.
    func nextFreeFast(s *mspan) gclinkptr {
    	theBit := sys.TrailingZeros64(s.allocCache) // Is there a free object in the allocCache?
    	if theBit < 64 {
    		result := s.freeindex + uint16(theBit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top