Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sysNoHugePage (0.2 sec)

  1. src/runtime/mem.go

    func sysHugePage(v unsafe.Pointer, n uintptr) {
    	sysHugePageOS(v, n)
    }
    
    // sysNoHugePage does not transition memory regions, but instead provides a
    // hint to the OS that it would be less efficient to back this memory region
    // with pages of a larger size transparently.
    func sysNoHugePage(v unsafe.Pointer, n uintptr) {
    	sysNoHugePageOS(v, n)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/runtime/mpagealloc.go

    				// Make the chunk mapping eligible or ineligible
    				// for huge pages, depending on what our current
    				// state is.
    				if p.chunkHugePages {
    					sysHugePage(r, l2Size)
    				} else {
    					sysNoHugePage(r, l2Size)
    				}
    			}
    			// Store the new chunk block but avoid a write barrier.
    			// grow is used in call chains that disallow write barriers.
    			*(*uintptr)(unsafe.Pointer(&p.chunks[c.l1()])) = uintptr(r)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  3. src/runtime/malloc.go

    			if l2 == nil {
    				throw("out of memory allocating heap arena map")
    			}
    			if h.arenasHugePages {
    				sysHugePage(unsafe.Pointer(l2), unsafe.Sizeof(*l2))
    			} else {
    				sysNoHugePage(unsafe.Pointer(l2), unsafe.Sizeof(*l2))
    			}
    			atomic.StorepNoWB(unsafe.Pointer(&h.arenas[ri.l1()]), unsafe.Pointer(l2))
    		}
    
    		if l2[ri.l2()] != nil {
    			throw("arena already initialized")
    		}
    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