Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for takeFromFront (0.11 sec)

  1. src/runtime/arena.go

    		// Allocate pointer-less objects from the tail end of the chunk.
    		v, ok := s.userArenaChunkFree.takeFromBack(size, typ.Align_)
    		if ok {
    			ptr = unsafe.Pointer(v)
    		}
    	} else {
    		v, ok := s.userArenaChunkFree.takeFromFront(size, typ.Align_)
    		if ok {
    			ptr = unsafe.Pointer(v)
    		}
    	}
    	if ptr == nil {
    		// Failed to allocate.
    		mp.mallocing = 0
    		releasem(mp)
    		return nil
    	}
    	if s.needzero != 0 {
    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