Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isUnusedUserArenaChunk (0.21 sec)

  1. src/runtime/arena.go

    	// set it to fault later.
    	if uintptr(x)%physPageSize != 0 {
    		throw("user arena chunk is not aligned to the physical page size")
    	}
    
    	return x, span
    }
    
    // isUnusedUserArenaChunk indicates that the arena chunk has been set to fault
    // and doesn't contain any scannable memory anymore. However, it might still be
    // mSpanInUse as it sits on the quarantine list, since it needs to be swept.
    //
    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/export_test.go

    			Mallocs, Frees uint64
    		}
    
    		// Add up current allocations in spans.
    		for _, s := range mheap_.allspans {
    			if s.state.get() != mSpanInUse {
    				continue
    			}
    			if s.isUnusedUserArenaChunk() {
    				continue
    			}
    			if sizeclass := s.spanclass.sizeclass(); sizeclass == 0 {
    				slow.Mallocs++
    				slow.Alloc += uint64(s.elemsize)
    			} else {
    				slow.Mallocs += uint64(s.allocCount)
    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