Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for freeManual (0.17 sec)

  1. src/runtime/stack.go

    				osStackFree(s)
    				mheap_.freeManual(s, spanAllocStack)
    			}
    			s = next
    		}
    		unlock(&stackpool[order].item.mu)
    	}
    
    	// Free large stack spans.
    	lock(&stackLarge.lock)
    	for i := range stackLarge.free {
    		for s := stackLarge.free[i].first; s != nil; {
    			next := s.next
    			stackLarge.free[i].remove(s)
    			osStackFree(s)
    			mheap_.freeManual(s, spanAllocStack)
    			s = next
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. src/runtime/mgcwork.go

    		gp := getg().m.curg
    		for i := 0; i < batchSize && !(preemptible && gp.preempt); i++ {
    			span := work.wbufSpans.free.first
    			if span == nil {
    				break
    			}
    			work.wbufSpans.free.remove(span)
    			mheap_.freeManual(span, spanAllocWorkBuf)
    		}
    	})
    	more := !work.wbufSpans.free.isEmpty()
    	unlock(&work.wbufSpans.lock)
    	return more
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. src/runtime/mgcsweep.go

    				// The unrolled GCProg bitmap is allocated separately.
    				// Free the space for the unrolled bitmap.
    				systemstack(func() {
    					s := spanOf(uintptr(unsafe.Pointer(s.largeType)))
    					mheap_.freeManual(s, spanAllocPtrScalarBits)
    				})
    				// Make sure to zero this pointer without putting the old
    				// value in a write buffer, as the old value might be an
    				// invalid pointer. See arena.go:(*mheap).allocUserArenaChunk.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top