Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for userArenaNextFree (0.22 sec)

  1. src/runtime/arena.go

    	//
    	// Protected by lock.
    	fault []liveUserArenaChunk
    }
    
    // userArenaNextFree reserves space in the user arena for an item of the specified
    // type. If cap is not -1, this is for an array of cap elements of type t.
    func (s *mspan) userArenaNextFree(typ *_type, cap int) unsafe.Pointer {
    	size := typ.Size_
    	if cap > 0 {
    		if size > ^uintptr(0)/uintptr(cap) {
    			// Overflow.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top