Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sysAlloc (0.07 sec)

  1. src/runtime/arena.go

    			hintList = &h.arenaHints
    		}
    		v, size := h.sysAlloc(userArenaChunkBytes, hintList, false)
    		if size%userArenaChunkBytes != 0 {
    			throw("sysAlloc size is not divisible by userArenaChunkBytes")
    		}
    		if size > userArenaChunkBytes {
    			// We got more than we asked for. This can happen if
    			// heapArenaSize > userArenaChunkSize, or if sysAlloc just returns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  2. src/runtime/heapdump.go

    	nptr := size / goarch.PtrSize
    	if uintptr(len(tmpbuf)) < nptr/8+1 {
    		if tmpbuf != nil {
    			sysFree(unsafe.Pointer(&tmpbuf[0]), uintptr(len(tmpbuf)), &memstats.other_sys)
    		}
    		n := nptr/8 + 1
    		p := sysAlloc(n, &memstats.other_sys)
    		if p == nil {
    			throw("heapdump: out of memory")
    		}
    		tmpbuf = (*[1 << 30]byte)(p)[:n]
    	}
    	// Convert heap bitmap to pointer bitmap.
    	clear(tmpbuf[:nptr/8+1])
    	s := spanOf(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/runtime/sys_darwin.go

    	}
    	return
    }
    func osinit_hack_trampoline()
    
    // mmap is used to do low-level memory allocation via mmap. Don't allow stack
    // splits, since this function (used by sysAlloc) is called in a lot of low-level
    // parts of the runtime and callers often assume it won't acquire any locks.
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. src/runtime/stack.go

    		throw("stack size not a power of 2")
    	}
    	if stackDebug >= 1 {
    		print("stackalloc ", n, "\n")
    	}
    
    	if debug.efence != 0 || stackFromSystem != 0 {
    		n = uint32(alignUp(uintptr(n), physPageSize))
    		v := sysAlloc(uintptr(n), &memstats.stacks_sys)
    		if v == nil {
    			throw("out of memory (stackalloc)")
    		}
    		return stack{uintptr(v), uintptr(v) + uintptr(n)}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    	testSysStat.add(-int64(p.summaryMappedReady))
    
    	// Free the mapped space for chunks.
    	for i := range p.chunks {
    		if x := p.chunks[i]; x != nil {
    			p.chunks[i] = nil
    			// This memory comes from sysAlloc and will always be page-aligned.
    			sysFree(unsafe.Pointer(x), unsafe.Sizeof(*p.chunks[0]), testSysStat)
    		}
    	}
    }
    
    // BaseChunkIdx is a convenient chunkIdx value which works on both
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top