Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for sysAlloc (0.07 sec)

  1. 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)
  2. src/runtime/mprof.go

    	bh := (*buckhashArray)(buckhash.Load())
    	if bh == nil {
    		lock(&profInsertLock)
    		// check again under the lock
    		bh = (*buckhashArray)(buckhash.Load())
    		if bh == nil {
    			bh = (*buckhashArray)(sysAlloc(unsafe.Sizeof(buckhashArray{}), &memstats.buckhash_sys))
    			if bh == nil {
    				throw("runtime: cannot allocate memory")
    			}
    			buckhash.StoreNoWB(unsafe.Pointer(bh))
    		}
    		unlock(&profInsertLock)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top