Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetPhysPageSize (0.28 sec)

  1. src/runtime/runtime_mmap_test.go

    // what the code in mem_bsd.go, mem_darwin.go, and mem_linux.go expects.
    // See the uses of ENOMEM in sysMap in those files.
    func TestMmapErrorSign(t *testing.T) {
    	p, err := runtime.Mmap(nil, ^uintptr(0)&^(runtime.GetPhysPageSize()-1), 0, runtime.MAP_ANON|runtime.MAP_PRIVATE, -1, 0)
    
    	if p != nil || err != runtime.ENOMEM {
    		t.Errorf("mmap = %v, %v, want nil, %v", p, err, runtime.ENOMEM)
    	}
    }
    
    func TestPhysPageSize(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/runtime/export_mmap_test.go

    package runtime
    
    var Mmap = mmap
    var Munmap = munmap
    
    const ENOMEM = _ENOMEM
    const MAP_ANON = _MAP_ANON
    const MAP_PRIVATE = _MAP_PRIVATE
    const MAP_FIXED = _MAP_FIXED
    
    func GetPhysPageSize() uintptr {
    	return physPageSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 429 bytes
    - Viewed (0)
Back to top