Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sysUnusedOS (0.28 sec)

  1. src/runtime/mem_linux.go

    			print("runtime: mmap: too much locked memory (check 'ulimit -l').\n")
    			exit(2)
    		}
    		return nil
    	}
    	return p
    }
    
    var adviseUnused = uint32(_MADV_FREE)
    
    const madviseUnsupported = 0
    
    func sysUnusedOS(v unsafe.Pointer, n uintptr) {
    	if uintptr(v)&(physPageSize-1) != 0 || n&(physPageSize-1) != 0 {
    		// madvise will round this to any physical page
    		// *covered* by this range, so an unaligned madvise
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top